diff options
author | Damien George <damien.p.george@gmail.com> | 2016-12-05 15:14:22 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-05 15:14:22 +1100 |
commit | aaab6a9921a9a874d9a974ecc5c3639002dc286b (patch) | |
tree | c8f75580a1221ae985834a87fa83a122a583b07c /stmhal/stm32_it.c | |
parent | 27a503f63284a1751f20d7f5295690fec5e1c462 (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.c | 16 |
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); |