#if (CONSOLE_IO_SUPPORT || ENABLE_UART_SUPPORT)
printf("Hello World in C from MCF52259 derivative on MCF52259 board\n\r");
fflush(stdout);
#endif
led_init();
pit_init(0);
for(;;) {
counter++;
switch(i)
{
case 0:
led_on(1);
delay_s(80000,0,1);
i++;
break;
case 1:
led_on(2);
delay_s(80000,0,1);
i++;
break;
case 2:
led_on(3);
delay_s(80000,0,1);
i++;
break;
case 3:
led_on(4);
delay_s(80000,0,1);
i++;
break;
case 4:
led_off(4);
delay_s(80000,0,1);
i++;
break;
case 5:
led_off(3);
delay_s(80000,0,1);
i++;
break;
case 6:
led_off(2);
delay_s(80000,0,1);
i++;
break;
case 7:
led_off(1);
delay_s(80000,0,1);
i=0;
break;