summaryrefslogtreecommitdiff
path: root/stmhal/stm32_it.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-05 15:14:22 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-05 15:14:22 +1100
commitaaab6a9921a9a874d9a974ecc5c3639002dc286b (patch)
treec8f75580a1221ae985834a87fa83a122a583b07c /stmhal/stm32_it.c
parent27a503f63284a1751f20d7f5295690fec5e1c462 (diff)
stmhal/uart: Add support for UART7 and UART8 on F7 MCUs.
Diffstat (limited to 'stmhal/stm32_it.c')
-rw-r--r--stmhal/stm32_it.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/stmhal/stm32_it.c b/stmhal/stm32_it.c
index 48e10e824..e1129ac39 100644
--- a/stmhal/stm32_it.c
+++ b/stmhal/stm32_it.c
@@ -677,6 +677,22 @@ void USART6_IRQHandler(void) {
IRQ_EXIT(USART6_IRQn);
}
+#if defined(MICROPY_HW_UART7_TX)
+void UART7_IRQHandler(void) {
+ IRQ_ENTER(UART7_IRQn);
+ uart_irq_handler(7);
+ IRQ_EXIT(UART7_IRQn);
+}
+#endif
+
+#if defined(MICROPY_HW_UART8_TX)
+void UART8_IRQHandler(void) {
+ IRQ_ENTER(UART8_IRQn);
+ uart_irq_handler(8);
+ IRQ_EXIT(UART8_IRQn);
+}
+#endif
+
#if MICROPY_HW_ENABLE_CAN
void CAN1_RX0_IRQHandler(void) {
IRQ_ENTER(CAN1_RX0_IRQn);