contiki/tests/blink-red.c

27 lines
299 B
C
Raw Normal View History

2010-02-21 10:25:22 -05:00
#include <mc1322x.h>
2010-02-23 15:52:46 -05:00
#include <board.h>
2009-11-04 17:30:18 -05:00
#define DELAY 400000
2010-03-16 22:03:38 -04:00
#define LED (1ULL << LED_RED)
2009-11-04 17:30:18 -05:00
void main(void) {
volatile uint32_t i;
2009-11-04 17:30:18 -05:00
2010-03-16 22:03:38 -04:00
gpio_pad_dir(LED);
2009-11-04 17:30:18 -05:00
while(1) {
2010-03-16 22:03:38 -04:00
gpio_data(LED);
for(i=0; i<DELAY; i++) { continue; }
2010-03-16 22:03:38 -04:00
gpio_data(0);
for(i=0; i<DELAY; i++) { continue; }
};
2009-11-04 17:30:18 -05:00
}
2009-11-04 17:30:18 -05:00