902aa402b3830b9c9aa26758390b6eb93b42a0f5
Stefan Schuermans added file headers

Stefan Schuermans authored 12 years ago

1) /* MIPS I system
Stefan Schuermans replace email address in he...

Stefan Schuermans authored 12 years ago

2)  * Copyright 2011-2012 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans added file headers

Stefan Schuermans authored 12 years ago

3)  * Copyleft GNU public license V2 or later
4)  *          http://www.gnu.org/copyleft/gpl.html
5)  */
6) 
Stefan Schuermans added cycle counter peripheral

Stefan Schuermans authored 12 years ago

7) #include "cyc_cnt.h"
8) 
Stefan Schuermans converted code to use const...

Stefan Schuermans authored 12 years ago

9) static volatile unsigned int *const cyc_cnt_ptr =
10)   (volatile unsigned int *)0x80001000;
11) 
Stefan Schuermans added cycle counter peripheral

Stefan Schuermans authored 12 years ago

12) /**
13)  * @brief read cycle counter
14)  * @return cycle counter value
15)  */
16) unsigned int cyc_cnt_read(void)
17) {
Stefan Schuermans converted code to use const...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

19) }
20)