mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-28 02:31:54 +00:00
29 lines
340 B
C
29 lines
340 B
C
#include <mc1322x.h>
|
|
#include <board.h>
|
|
|
|
#include "led.h"
|
|
|
|
#define DELAY 400000
|
|
|
|
#define LED_BITS LED_WHITE
|
|
|
|
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; }
|
|
|
|
};
|
|
|
|
}
|
|
|