#include "led.h"
#include "HAL_device.h"
void delay(void)
{
u32 i;
i=400000; while(i--);
}
int main(void)
{
LED_Init();
while(1)
{
LED1_TOGGLE();
delay();
LED2_TOGGLE();
delay();
LED3_TOGGLE();
delay();
LED4_TOGGLE();
delay();
LED4_TOGGLE();
delay();
LED3_TOGGLE();
delay();
LED2_TOGGLE();
delay();
LED1_TOGGLE();
delay();
}
}
|