contiki/tests/blink-green.c
Mariano Alvira fecb5e7bdb many warning cleanups.
Contributed by Clive Stubbings.
2010-03-13 07:30:47 -05:00

27 lines
307 B
C

#include <mc1322x.h>
#include <board.h>
#define DELAY 400000
#define LED LED_GREEN
void main(void) {
volatile uint32_t i;
*GPIO_PAD_DIR0 = LED;
while(1) {
*GPIO_DATA0 = LED;
for(i=0; i<DELAY; i++) { continue; }
*GPIO_DATA0 = 0x00000000;
for(i=0; i<DELAY; i++) { continue; }
};
}