osd-contiki/tests/blink-red.c

27 lines
344 B
C
Raw Normal View History

2010-02-21 16:25:22 +01:00
#include <mc1322x.h>
2009-11-04 23:30:18 +01:00
#define DELAY 400000
2010-02-23 21:16:12 +01:00
#define LED_BITS LED_RED
2009-11-04 23:30:18 +01:00
__attribute__ ((section ("startup")))
void main(void) {
volatile uint32_t i;
2009-11-04 23:30:18 +01:00
2010-02-22 00:47:12 +01:00
// *GPIO_PAD_DIR0 = LED_BITS;
2009-11-04 23:30:18 +01:00
while(1) {
2010-02-22 00:47:12 +01:00
// *GPIO_DATA0 = LED_BITS;
for(i=0; i<DELAY; i++) { continue; }
2009-11-04 23:30:18 +01:00
*GPIO_DATA0 = 0x00000000;
for(i=0; i<DELAY; i++) { continue; }
};
2009-11-04 23:30:18 +01:00
}
2009-11-04 23:30:18 +01:00