02dd3903a439815776b7a28a30f3222ea557e24d
Stefan Schuermans added "LEDs" I/O peripheral...

Stefan Schuermans authored 12 years ago

1) #include "leds.h"
2) 
Stefan Schuermans slower LED animation for ex...

Stefan Schuermans authored 12 years ago

3) volatile int data[100];
4) 
5) void delay()
6) {
7)   unsigned int i, j;
8)   for (j = 0; j < 1000; ++j)
9)     for (i = 0; i < sizeof(data) / sizeof(data[0]); ++i)
10)       data[i] = i;
11) }
Stefan Schuermans initial firmware and testbed

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

15)   unsigned int i;
16) 
Stefan Schuermans slower LED animation for ex...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

27)