/* Function for handling the UART Interrupt. 
UART interrupt handler to process TX Ready when TXD is available, RX Ready when a byte is received, or in case of error when receiving a byte.  */
void UART0_IRQHandler(void)
/* Function for handling the UART Interrupt. 
UART interrupt handler to process TX Ready when TXD is available, RX Ready when a byte is received, or in case of error when receiving a byte.  */
void UART0_IRQHandler(void)
{
    if (NRF_UART0->EVENTS_RXDRDY != 0 && (NRF_UART0->INTENSET & UART_INTENSET_RXDRDY_Msk))
    {
        uart_rxdrdy_handle();
    }
    if (NRF_UART0->EVENTS_TXDRDY != 0 && (NRF_UART0->INTENSET & UART_INTENSET_TXDRDY_Msk))
    {
        uart_txdrdy_handle();
    }
    if (NRF_UART0->EVENTS_ERROR != 0 && (NRF_UART0->INTENSET & UART_INTENSET_ERROR_Msk))
    {
        uart_error_handle();
    }
}