diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-04-11 16:37:45 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-04-11 16:37:45 +1000 |
| commit | 68b70fac5cce7bfa3416dd04440e3a7c1979ffc5 (patch) | |
| tree | 081d9399d239bf696408ed08bbedaf591ae8bb76 | |
| parent | a7ebac2eaed7eb0da362568b9333339634f1da1d (diff) | |
stm32/stm32_it: Add IRQ handler for I2C4.
| -rw-r--r-- | ports/stm32/stm32_it.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/stm32/stm32_it.c b/ports/stm32/stm32_it.c index 03321a1a9..04abfd211 100644 --- a/ports/stm32/stm32_it.c +++ b/ports/stm32/stm32_it.c @@ -817,3 +817,17 @@ void I2C3_ER_IRQHandler(void) { IRQ_EXIT(I2C3_ER_IRQn); } #endif // defined(MICROPY_HW_I2C3_SCL) + +#if defined(MICROPY_HW_I2C4_SCL) +void I2C4_EV_IRQHandler(void) { + IRQ_ENTER(I2C4_EV_IRQn); + i2c_ev_irq_handler(4); + IRQ_EXIT(I2C4_EV_IRQn); +} + +void I2C4_ER_IRQHandler(void) { + IRQ_ENTER(I2C4_ER_IRQn); + i2c_er_irq_handler(4); + IRQ_EXIT(I2C4_ER_IRQn); +} +#endif // defined(MICROPY_HW_I2C4_SCL) |
