contiki/tests/blink-green.c

27 lines
301 B
C
Raw Normal View History

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