mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-24 22:32:23 +00:00
fix blink-red
This commit is contained in:
parent
1522b72b1e
commit
3cc6896981
@ -1,4 +1,5 @@
|
||||
#include <mc1322x.h>
|
||||
#include <board.h>
|
||||
|
||||
#define DELAY 400000
|
||||
|
||||
@ -8,11 +9,11 @@ __attribute__ ((section ("startup")))
|
||||
void main(void) {
|
||||
volatile uint32_t i;
|
||||
|
||||
// *GPIO_PAD_DIR0 = LED_BITS;
|
||||
*GPIO_PAD_DIR0 = LED_BITS;
|
||||
|
||||
while(1) {
|
||||
|
||||
// *GPIO_DATA0 = LED_BITS;
|
||||
*GPIO_DATA0 = LED_BITS;
|
||||
|
||||
for(i=0; i<DELAY; i++) { continue; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user