硬件环境:N76E003开发板;以下是我的代码,错在哪了呢?请各位朋友指教!
void main (void)
{
UINT8 cmd;
Set_All_GPIO_Quasi_Mode;
InitialUART0_Timer3(115200);
P12 = 0;
while(1)
{
cmd = Receive_Data_From_UART0();
//Send_Data_To_UART0(0x55);
switch(cmd)
{
case 1:
P12 = 0;
break;
case 0:
P12 = 1;
break;
}
}
}
|