mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-26 04:32:02 +00:00
29 lines
309 B
C
29 lines
309 B
C
#include <mc1322x.h>
|
|
#include <board.h>
|
|
|
|
#include "led.h"
|
|
|
|
#define DELAY 400000
|
|
|
|
#define LED LED_WHITE
|
|
|
|
void main(void) {
|
|
volatile uint32_t i;
|
|
|
|
gpio_pad_dir(LED);
|
|
|
|
while(1) {
|
|
|
|
gpio_data(LED);
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
gpio_data(0);
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
};
|
|
|
|
}
|
|
|