updated to use the leds on the RedBee hardware and made it a little more general.
Signed-off-by: Mariano Alvira <mar@devl.org>
This commit is contained in:
parent
c419d7403b
commit
e1059a9b15
9 changed files with 51 additions and 17 deletions
|
@ -6,17 +6,20 @@
|
|||
|
||||
#include "embedded_types.h"
|
||||
#include "isr.h"
|
||||
#include "led.h"
|
||||
|
||||
#define LED_BITS LED_BLUE
|
||||
|
||||
__attribute__ ((section ("startup")))
|
||||
void main(void) {
|
||||
|
||||
*(volatile uint32_t *)GPIO_PAD_DIR0 = 0x00000400;
|
||||
*(volatile uint32_t *)GPIO_PAD_DIR0 = LED_BITS;
|
||||
|
||||
volatile uint32_t i;
|
||||
|
||||
while(1) {
|
||||
|
||||
*(volatile uint32_t *)GPIO_DATA0 = 0x00000400;
|
||||
*(volatile uint32_t *)GPIO_DATA0 = LED_BITS;
|
||||
|
||||
for(i=0; i<DELAY; i++) { continue; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue