/* Select UART Clock Source From 12Mhz*/
SYS_SelectIPClockSource_1(CLK_CLKSEL1_UART_MASK, CLK_CLKSEL0_HCLK_HIRC);
/* UART Setting */
sParam.u32BaudRate = 9600;
sParam.u32cDataBits = DRVUART_DATABITS_8;
sParam.u32cStopBits = DRVUART_STOPBITS_1;
sParam.u32cParity = DRVUART_PARITY_NONE;
sParam.u32cRxTriggerLevel = DRVUART_FIFO_14BYTES;
sParam.u8TimeOut = 0xFF;/*超时*/
sParam.u8EnableDiv16 = DISABLE;
UART_EnableInt(UART0,DRVUART_RDAINT|DRVUART_TOUTINT );
请问一下,这里用的是接受超时中断,串口接受超时它的超时时间是怎么算的哦?是多长呢? |