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