21e3f0f4c0d28aa3df33bb964d11eb0a027f53b3
Stefan Schuermans added cycle counter peripheral

Stefan Schuermans authored 12 years ago

1) #include "cyc_cnt.h"
2) 
Stefan Schuermans converted code to use const...

Stefan Schuermans authored 12 years ago

3) static volatile unsigned int *const cyc_cnt_ptr =
4)   (volatile unsigned int *)0x80001000;
5) 
Stefan Schuermans added cycle counter peripheral

Stefan Schuermans authored 12 years ago

6) /**
7)  * @brief read cycle counter
8)  * @return cycle counter value
9)  */
10) unsigned int cyc_cnt_read(void)
11) {
Stefan Schuermans converted code to use const...

Stefan Schuermans authored 12 years ago

12)   return *cyc_cnt_ptr;
Stefan Schuermans added cycle counter peripheral

Stefan Schuermans authored 12 years ago

13) }
14)