osd-contiki/tests/blink-white.c

29 lines
309 B
C
Raw Normal View History

#include <mc1322x.h>
#include <board.h>
2010-03-17 03:03:38 +01:00
#include "led.h"
#define DELAY 400000
#define LED LED_WHITE
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; }
};
}