ailsalw 发表于 2013-4-24 15:10
恩恩,刚才已经发你QQ上了,我再发你邮箱吧
收到了,谢谢。 请问下我要用串口助手来收发数据,请问下面函数要怎么修改
void main( void )
{ Initial(); // Do not remove
Initial_UART();
while(1)
{ if ( InFlag ) // Data size of "InLen" is already
{ // To do.. // in the "InBuffer[]"
UART_Send_Data_To_Device( InLen , InBuffer );
USB_Read_Data_Complete(); // Do not remove
}
// To do..
/* Will send data to PC ?? If yes , enable the following function call */
// USB_Send_Data_To_PC( OutLen , OutBuffer );
USB_Event(); // Check USB power event
UART_Event(); // Check Uart Line/Modem event
UART_Send_Data_To_PC();
}
} |