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:
Mariano Alvira 2009-06-22 12:35:39 -04:00
parent c419d7403b
commit e1059a9b15
9 changed files with 51 additions and 17 deletions

View file

@ -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; }