summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroland van straten <roland@van-straten.org>2019-03-12 13:56:39 +0100
committerDamien George <damien.p.george@gmail.com>2019-03-14 14:02:21 +1100
commitc9eb7eb449a246c607fa92a5313e3137d728fbcb (patch)
treef2f7ffdaf1760e06890010d8af533f53292c7907
parentc7d19dc0adab2d615e6044f7bbbf6b71255ae8df (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.c2
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);