osd-contiki/tests/blink-blue.c

27 lines
321 B
C
Raw Normal View History

#include <mc1322x.h>
#include <board.h>
#define DELAY 400000
2010-02-24 00:19:38 +01:00
#define LED_BITS LED_BLUE
void main(void) {
volatile uint32_t i;
*GPIO_PAD_DIR0 = LED_BITS;
while(1) {
*GPIO_DATA0 = LED_BITS;
for(i=0; i<DELAY; i++) { continue; }
*GPIO_DATA0 = 0x00000000;
for(i=0; i<DELAY; i++) { continue; }
};
}