收到了
我要用串口助手来收发数据,请问下面函数要怎么修改
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();
}
} |