df6d296fa87770ec1eae3a2f61c48230aa26bdcd
Stefan Schuermans added cycle counter peripheral

Stefan Schuermans authored 12 years ago

1) #include "cyc_cnt.h"
Stefan Schuermans implemented LCD peripheral

Stefan Schuermans authored 12 years ago

2) #include "lcd.h"
Stefan Schuermans added "LEDs" I/O peripheral...

Stefan Schuermans authored 12 years ago

3) #include "leds.h"
4) 
Stefan Schuermans slower LED animation for ex...

Stefan Schuermans authored 12 years ago

5) volatile int data[100];
6) 
Stefan Schuermans implemented LCD peripheral

Stefan Schuermans authored 12 years ago

7) void delay(void)
Stefan Schuermans slower LED animation for ex...

Stefan Schuermans authored 12 years ago

8) {
Stefan Schuermans implemented LCD peripheral

Stefan Schuermans authored 12 years ago

9)   cyc_cnt_delay_ms(200);
Stefan Schuermans slower LED animation for ex...

Stefan Schuermans authored 12 years ago

10) }
Stefan Schuermans initial firmware and testbed

Stefan Schuermans authored 12 years ago

11) 
12) int main()
13) {
Stefan Schuermans added "LEDs" I/O peripheral...

Stefan Schuermans authored 12 years ago

14)   unsigned int i;
15) 
Stefan Schuermans added cycle counter peripheral

Stefan Schuermans authored 12 years ago

16)   for (i = 0; i < sizeof(data) / sizeof(data[0]); ++i)
17)     data[i] = i;
18) 
Stefan Schuermans implemented LCD peripheral

Stefan Schuermans authored 12 years ago

19)   lcd_init();
20) 
Stefan Schuermans slower LED animation for ex...

Stefan Schuermans authored 12 years ago

21)   while (1) {
22)     for (i = 0x1; i < 0x80; i <<= 1) {
23)       leds_set_state(i);
24)       delay();
25)     }
26)     for (i = 0x80; i > 0x1; i >>= 1) {
27)       leds_set_state(i);
28)       delay();
29)     }
30)   }
Stefan Schuermans added "LEDs" I/O peripheral...

Stefan Schuermans authored 12 years ago

31)