diff options
author | roland van straten <roland@van-straten.org> | 2019-03-12 13:56:39 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-03-14 14:02:21 +1100 |
commit | c9eb7eb449a246c607fa92a5313e3137d728fbcb (patch) | |
tree | f2f7ffdaf1760e06890010d8af533f53292c7907 | |
parent | c7d19dc0adab2d615e6044f7bbbf6b71255ae8df (diff) |
stm32/stm32_it: Guard UART7_IRQHandler with check for UART7 define.
All STM32 with a UART7 also have a UART8 and vice versa, but this change
improves readability and allows for them to be independent in the future.
-rw-r--r-- | ports/stm32/stm32_it.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/stm32_it.c b/ports/stm32/stm32_it.c index 004e0f974..637442a91 100644 --- a/ports/stm32/stm32_it.c +++ b/ports/stm32/stm32_it.c @@ -735,7 +735,7 @@ void USART6_IRQHandler(void) { IRQ_EXIT(USART6_IRQn); } -#if defined(UART8) +#if defined(UART7) void UART7_IRQHandler(void) { IRQ_ENTER(UART7_IRQn); uart_irq_handler(7); |