df6d296fa87770ec1eae3a2f61c48230aa26bdcd
Stefan Schuermans added cycle counter peripheral

Stefan Schuermans authored 12 years ago

1) #include "cyc_cnt.h"
2) 
3) /**
4)  * @brief read cycle counter
5)  * @return cycle counter value
6)  */
7) unsigned int cyc_cnt_read(void)
8) {
9)   volatile unsigned int *p_cyc_cnt = (volatile unsigned int *)0x80001000;
10)   return *p_cyc_cnt;
11) }
12)