*---------------------------------------------------------------------------------------------------------*/
/* ISR to handle UART Channel 0 interrupt event */
/*---------------------------------------------------------------------------------------------------------*/
void UART0_IRQHandler(void)
{
uint8_t i = 0;
uint32_t u32IntSts = UART0->INTSTS;
if(u32IntSts & UART_INTSTS_RDAINT_Msk)
{
for(i=0;i<13;i++)
{
g_u8RecData[g_u32RecSize++] = UART_READ(UART0);
}
}
if(u32IntSts & UART_INTSTS_RXTOINT_Msk)
{
while(UART_GET_RX_EMPTY(UART0) == 0)
{
g_u8RecData[g_u32RecSize++] = UART_READ(UART0);
g_u8ReceiveFlag = 1;
}
}
}
|