mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-03 22:06:22 +00:00
4b17c144d0
consistent with how everything else works
27 lines
323 B
C
27 lines
323 B
C
#include <mc1322x.h>
|
|
#include <board.h>
|
|
|
|
#define DELAY 400000
|
|
|
|
#define LED LED_WHITE
|
|
|
|
void main(void) {
|
|
volatile uint32_t i;
|
|
|
|
*GPIO_PAD_DIR0 = ( 1<< LED );
|
|
|
|
while(1) {
|
|
|
|
*GPIO_DATA0 = (1 << LED );
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
*GPIO_DATA0 = 0x00000000;
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
};
|
|
|
|
}
|
|
|