osd-contiki/tests/blink-blue.c

27 lines
300 B
C
Raw Normal View History

#include <mc1322x.h>
#include <board.h>
#define DELAY 400000
2010-03-17 03:03:38 +01:00
#define LED (1ULL << LED_BLUE)
void main(void) {
volatile uint32_t i;
2010-03-17 03:03:38 +01:00
gpio_pad_dir(LED);
while(1) {
2010-03-17 03:03:38 +01:00
gpio_data(LED);
for(i=0; i<DELAY; i++) { continue; }
2010-03-17 03:03:38 +01:00
gpio_data(0);
for(i=0; i<DELAY; i++) { continue; }
};
}