void main (void)
{
int i=0;
InitialUART0_Timer1(115200);
TI = 1; // Important, use prinft function must set TI=1;
Timer0_Delay1ms(300);
printf("\n---------------\r\n");
printf("hello world\r\n");
while(1)
{
printf("while-%d\r\n",i);
Timer0_Delay1ms(500);
i++;
if(i>100)
i=0;
}
}
|