1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

kinetis: uart: fix unused-function warning

When compiling with LLVM (should also be seen `-Wunused-function` in
GCC), I get an error for `frdm-k22f`. This should fix that.
This commit is contained in:
Martine Lenders 2018-08-03 15:59:22 +02:00
parent 2f480efb60
commit 376c10feff

View File

@ -242,6 +242,8 @@ KINETIS_UART_WRITE_INLINE void uart_write_uart(uart_t uart, const uint8_t *data,
}
}
#if defined(UART_0_ISR) || defined(UART_1_ISR) || defined(UART_2_ISR) || \
defined(UART_3_ISR) || defined(UART_4_ISR)
static inline void irq_handler_uart(uart_t uart)
{
UART_Type *dev = uart_config[uart].dev;
@ -273,6 +275,7 @@ static inline void irq_handler_uart(uart_t uart)
cortexm_isr_end();
}
#endif
#ifdef UART_0_ISR
void UART_0_ISR(void)
@ -358,6 +361,8 @@ KINETIS_UART_WRITE_INLINE void uart_write_lpuart(uart_t uart, const uint8_t *dat
}
}
#if defined(LPUART_0_ISR) || defined(LPUART_1_ISR) || defined(LPUART_2_ISR) || \
defined(LPUART_3_ISR) || defined(LPUART_4_ISR)
static inline void irq_handler_lpuart(uart_t uart)
{
LPUART_Type *dev = uart_config[uart].dev;
@ -394,6 +399,7 @@ static inline void irq_handler_lpuart(uart_t uart)
cortexm_isr_end();
}
#endif
#ifdef LPUART_0_ISR
void LPUART_0_ISR(void)