2010-02-23 23:14:32 +00:00
|
|
|
#include <mc1322x.h>
|
|
|
|
#include <board.h>
|
2009-06-22 16:35:39 +00:00
|
|
|
|
2010-02-23 23:14:32 +00:00
|
|
|
#define DELAY 400000
|
2009-04-20 22:31:13 +00:00
|
|
|
|
2010-02-23 23:19:38 +00:00
|
|
|
#define LED_BITS LED_BLUE
|
2009-03-27 20:00:10 +00:00
|
|
|
|
2010-02-23 23:14:32 +00:00
|
|
|
void main(void) {
|
2009-03-27 20:00:10 +00:00
|
|
|
volatile uint32_t i;
|
2010-02-23 23:14:32 +00:00
|
|
|
|
|
|
|
*GPIO_PAD_DIR0 = LED_BITS;
|
2009-03-27 20:00:10 +00:00
|
|
|
|
|
|
|
while(1) {
|
|
|
|
|
2010-02-23 23:14:32 +00:00
|
|
|
*GPIO_DATA0 = LED_BITS;
|
2009-03-27 20:00:10 +00:00
|
|
|
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
|
2010-02-23 23:14:32 +00:00
|
|
|
*GPIO_DATA0 = 0x00000000;
|
2009-03-27 20:00:10 +00:00
|
|
|
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
|
|
|
|
};
|
2010-02-23 23:14:32 +00:00
|
|
|
|
2009-03-27 20:00:10 +00:00
|
|
|
}
|
2010-02-23 23:14:32 +00:00
|
|
|
|