26 lines
301 B
C
26 lines
301 B
C
#include <mc1322x.h>
|
|
#include <board.h>
|
|
|
|
#define DELAY 400000
|
|
|
|
#define LED (1ULL << LED_GREEN)
|
|
|
|
void main(void) {
|
|
volatile uint32_t i;
|
|
|
|
gpio_pad_dir(LED);
|
|
|
|
while(1) {
|
|
|
|
gpio_data(LED);
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
gpio_data(0);
|
|
|
|
for(i=0; i<DELAY; i++) { continue; }
|
|
|
|
};
|
|
|
|
}
|
|
|