mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-26 04:32:02 +00:00
b77fb10e63
added blink code for all the leds.
27 lines
487 B
C
27 lines
487 B
C
#define MBAR_GPIO 0x80000000
|
|
#define GPIO_PAD_DIR0 0x80000000
|
|
#define GPIO_DATA0 0x80000008
|
|
#define UART1_DATA 0x80005008
|
|
#define DELAY 400000
|
|
|
|
#include "embedded_types.h"
|
|
|
|
void main(void) {
|
|
|
|
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000200;
|
|
|
|
volatile uint32_t i;
|
|
|
|
while(1) {
|
|
|
|
*(volatile uint32_t *)GPIO_DATA0 = 0x00000200;
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
*(volatile uint32_t *)GPIO_DATA0 = 0x00000000;
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
};
|
|
}
|