e5fcec6a1bf4df271812c85bc515906c9c2afbc5
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)