Add programs for lpcan and lpcanvca testing on spejblarm board
[LPC2xxx_and_RobotSpejbl.git] / app / eb_blink / main.c
blob43a9786fdbc72d0f5f8482f14880d4940476c574
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // Eurobot BLINK TEST (with LPC2129)
4 //
5 // Description
6 // -----------
7 // This software blinks on debug leds. Use it with lpceurobot board
8 // Author : Jiri Kubias DCE CVUT
9 //
11 ////////////////////////////////////////////////////////////////////////////////
13 #include <lpc21xx.h> /* LPC21xx definitions */
14 #include <deb_led.h>
17 void dummy_wait()
19 unsigned int wait = 5000000;
20 while(--wait);
23 int main (void) {
28 while(1)
30 deb_led_change(LEDR);
31 dummy_wait();
32 deb_led_change(LEDG);
33 dummy_wait();
34 deb_led_change(LEDB);
35 dummy_wait();
36 deb_led_change(LEDY);
37 dummy_wait();