/////////////////////////////////////////////////////////////////////////////// // Code /////////////////////////////////////////////////////////////////////////////// void PM_DBG_UART_IRQ_HANDLER(void) { #if (defined BOARD_USE_LPSCI) LPSCI_DRV_IRQHandler(BOARD_DEBUG_UART_INSTANCE); #elif (defined BOARD_USE_LPUART) LPUART_DRV_IRQHandler(BOARD_DEBUG_UART_INSTANCE); #else UART_DRV_IRQHandler(BOARD_DEBUG_UART_INSTANCE); #endif // BOARD_USE_LPSCI }
/* Implementation of UART5 handler named in startup code. */ void UART0_UART1_UART2_UART3_IRQHandler(void) { for(uint32_t i=0; i < UART_INSTANCE_COUNT; i++) { if (CLOCK_SYS_GetUartGateCmd(i)) { UART_DRV_IRQHandler(i); } } }
void UART2_FLEXIO_IRQHandler(void) #endif { if(g_smartcardInstance == 0) { SMARTCARD_UART_DRV_IRQHandler(0); } else { UART_DRV_IRQHandler(0); } }
void UART5_RX_TX_IRQHandler(void) #endif { if(g_smartcardInstance == 5) { SMARTCARD_UART_DRV_IRQHandler(5); } else { UART_DRV_IRQHandler(5); } }
void UART2_IRQHandler(void) #endif { if(g_smartcardInstance == 1) { SMARTCARD_UART_DRV_IRQHandler(1); } else { UART_DRV_IRQHandler(1); } }
/* Implementation of UART5 handler named in startup code. */ void UART0_UART1_UART2_UART3_IRQHandler(void) { rt_interrupt_enter(); rt_hw_serial_isr((struct rt_serial_device*)&_kinetis_serial, RT_SERIAL_EVENT_RX_IND); for(uint32_t i=0; i < UART_INSTANCE_COUNT; i++) { if (CLOCK_SYS_GetUartGateCmd(i)) { UART_DRV_IRQHandler(i); } } rt_interrupt_leave(); }
/* Implementation of UART5 handler named in startup code. */ void UART0_UART1_UART2_UART3_IRQHandler(void) { if (CLOCK_SYS_GetUartGateCmd(0)) { UART_DRV_IRQHandler(0); } if (CLOCK_SYS_GetUartGateCmd(1)) { UART_DRV_IRQHandler(1); } if (CLOCK_SYS_GetUartGateCmd(2)) { UART_DRV_IRQHandler(2); } if (CLOCK_SYS_GetUartGateCmd(3)) { UART_DRV_IRQHandler(3); } }
void MQX_UART4_RX_TX_IRQHandler(void) { #else void UART4_RX_TX_IRQHandler(void) { #endif if(g_smartcardInstance == 4) { SMARTCARD_UART_DRV_IRQHandler(4); } else { UART_DRV_IRQHandler(4); } } /* Enabled only for smartcard/uart-iso7826 function */ #if (FSL_RTOS_MQX) void MQX_UART4_ERR_IRQHandler(void) #else void UART4_ERR_IRQHandler(void) #endif { SMARTCARD_UART_DRV_ErrIRQHandler(5); }
void PM_DBG_UART_IRQ_HANDLER(void) #endif { UART_DRV_IRQHandler(BOARD_DEBUG_UART_INSTANCE); }
/* Implementation of UART1 handler named in startup code. */ void UART1_RX_TX_IRQHandler(void) { UART_DRV_IRQHandler(1); }
/* Implementation of UART0 handler named in startup code. */ void UART0_RX_TX_IRQHandler(void) { UART_DRV_IRQHandler(0); }
/* Implementation of UART2 handler named in startup code. */ void UART2_IRQHandler(void) { UART_DRV_IRQHandler(2); }
/* Implementation of UART1 handler named in startup code. */ void UART2_FLEXIO_IRQHandler(void) { UART_DRV_IRQHandler(2); }
/* Implementation of UART5 handler named in startup code. */ void UART5_RX_TX_IRQHandler(void) { UART_DRV_IRQHandler(5); }
/* Implementation of UART4 handler named in startup code. */ void UART4_RX_TX_IRQHandler(void) { UART_DRV_IRQHandler(4); }
/* Implementation of UART3 handler named in startup code. */ void UART3_RX_TX_IRQHandler(void) { UART_DRV_IRQHandler(3); }
void UART3_RX_TX_IRQHandler(void) { UART_DRV_IRQHandler(FSL_DEBUG_UART); }
/* Implementation of UART1 handler named in startup code. */ void UART1_IRQHandler(void) { UART_DRV_IRQHandler(0); }
void UART0_RX_TX_IRQHandler(void) { UART_DRV_IRQHandler(FSL_TEST_UART); }
void myUART_IRQHandler(void) { UART_DRV_IRQHandler(myUART_IDX); }
void UART0_RX_TX_IRQHandler(void) { UART_DRV_IRQHandler(FSL_UARTCOM1); }