420617edb7ecc031f521c4e7eac1e5207a6737d9
Stefan Schuermans added "LEDs" I/O peripheral...

Stefan Schuermans authored 12 years ago

1) #include "leds.h"
2) 
3) int data[10];
Stefan Schuermans initial firmware and testbed

Stefan Schuermans authored 12 years ago

4) 
5) int main()
6) {
Stefan Schuermans added "LEDs" I/O peripheral...

Stefan Schuermans authored 12 years ago

7)   unsigned int i;
8) 
9)   for (i = 0; i < sizeof(data) / sizeof(data[0]); ++i)
Stefan Schuermans initial firmware and testbed

Stefan Schuermans authored 12 years ago

10)     data[i] = i;
11) 
Stefan Schuermans added "LEDs" I/O peripheral...

Stefan Schuermans authored 12 years ago

12)   for (i = 0x1; i < 0x100; i <<= 1)
13)     leds_set_state(i);
14)