中断处理函数如下:
- /*FIFO +超时 */
- static VOID UART0_INT_HANDLE(void)
- {
- UINT8 bInChar;
- if(UART0->INTSTS & (UART_INTSTS_RDAINT_Msk|UART_INTSTS_RXTOINT_Msk))
- //RDA or Timeout
- {
- /* Get all the input characters */
- //while(UART_IS_RX_READY(UART0)){
- while(UART_GET_RX_EMPTY(UART0)==0) {
- /* Get the character from UART Buffer */
- bInChar = UART_READ(UART0);
- }
- }
- }
|