2010-02-23 18:14:32 -05:00
|
|
|
#include <mc1322x.h>
|
|
|
|
#include <board.h>
|
2010-03-16 22:03:38 -04:00
|
|
|
|
2010-03-13 07:30:47 -05:00
|
|
|
#include "led.h"
|
2009-06-22 12:35:39 -04:00
|
|
|
|
2010-02-23 18:14:32 -05:00
|
|
|
#define DELAY 400000
|
2009-04-20 18:31:13 -04:00
|
|
|
|
2010-03-07 15:39:56 -05:00
|
|
|
#define LED LED_WHITE
|
2009-03-27 16:00:10 -04:00
|
|
|
|
2010-02-23 18:14:32 -05:00
|
|
|
void main(void) {
|
2009-03-27 16:00:10 -04:00
|
|
|
volatile uint32_t i;
|
2010-02-23 18:14:32 -05:00
|
|
|
|
2010-03-16 22:03:38 -04:00
|
|
|
gpio_pad_dir(LED);
|
2009-03-27 16:00:10 -04:00
|
|
|
|
|
|
|
while(1) {
|
|
|
|
|
2010-03-16 22:03:38 -04:00
|
|
|
gpio_data(LED);
|
2009-03-27 16:00:10 -04:00
|
|
|
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
|
2010-03-16 22:03:38 -04:00
|
|
|
gpio_data(0);
|
|
|
|
|
2009-03-27 16:00:10 -04:00
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
|
|
|
|
};
|
2010-02-23 18:14:32 -05:00
|
|
|
|
2009-03-27 16:00:10 -04:00
|
|
|
}
|
2010-02-23 18:14:32 -05:00
|
|
|
|