2010-02-24 00:14:32 +01:00
|
|
|
#include <mc1322x.h>
|
|
|
|
#include <board.h>
|
2009-06-22 18:35:39 +02:00
|
|
|
|
2010-02-24 00:14:32 +01:00
|
|
|
#define DELAY 400000
|
2009-04-21 00:31:13 +02:00
|
|
|
|
2010-03-07 21:39:56 +01:00
|
|
|
#define LED LED_GREEN
|
2009-03-27 21:00:10 +01:00
|
|
|
|
2010-02-24 00:14:32 +01:00
|
|
|
void main(void) {
|
2009-03-27 21:00:10 +01:00
|
|
|
volatile uint32_t i;
|
2010-02-24 00:14:32 +01:00
|
|
|
|
2010-03-07 21:39:56 +01:00
|
|
|
*GPIO_PAD_DIR0 = ( 1<< LED );
|
2009-03-27 21:00:10 +01:00
|
|
|
|
|
|
|
while(1) {
|
|
|
|
|
2010-03-07 21:39:56 +01:00
|
|
|
*GPIO_DATA0 = (1 << LED );
|
2009-03-27 21:00:10 +01:00
|
|
|
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
|
2010-02-24 00:14:32 +01:00
|
|
|
*GPIO_DATA0 = 0x00000000;
|
2009-03-27 21:00:10 +01:00
|
|
|
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
|
|
|
|
};
|
2010-02-24 00:14:32 +01:00
|
|
|
|
2009-03-27 21:00:10 +01:00
|
|
|
}
|
2010-02-24 00:14:32 +01:00
|
|
|
|