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)