在NUC123SeriesBSP_CMSIS_V1.01.006\SampleCode\USB\Smpl_VCOM範例主程式中,我想透過PC串口來收發資料,程式會卡在 VCOM_MainProcess();
int main (void)
{
SYS_Init();
VCOM_MainProcess(); //en: Execute VCOM process
}
如果要在主程式中加一段程式UART_WRITE(UART0, 0x31);來傳送資料該如何設定?
int main (void)
{
SYS_Init();
VCOM_MainProcess(); //en: Execute VCOM process
UART_WRITE(UART0, 0x31);
}
|