diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-18 01:18:23 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-11-24 23:55:45 +0100 |
| commit | bc65b8f7ec1df181c793846b7c0657f689963d3a (patch) | |
| tree | 2df4ad2570808ba805f154f0dd5f7dea38131938 /examples/stm32f4 | |
| parent | e8ff5a2baf217ac7e52f119c0d17a9826ad60067 (diff) | |
stm32/i2c: add async, dual interrupt scaffolding.
Diffstat (limited to 'examples/stm32f4')
| -rw-r--r-- | examples/stm32f4/src/bin/i2c.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/i2c.rs b/examples/stm32f4/src/bin/i2c.rs index 032bd97ee..4f4adde28 100644 --- a/examples/stm32f4/src/bin/i2c.rs +++ b/examples/stm32f4/src/bin/i2c.rs | |||
| @@ -14,7 +14,8 @@ const ADDRESS: u8 = 0x5F; | |||
| 14 | const WHOAMI: u8 = 0x0F; | 14 | const WHOAMI: u8 = 0x0F; |
| 15 | 15 | ||
| 16 | bind_interrupts!(struct Irqs { | 16 | bind_interrupts!(struct Irqs { |
| 17 | I2C2_EV => i2c::InterruptHandler<peripherals::I2C2>; | 17 | I2C2_EV => i2c::EventInterruptHandler<peripherals::I2C2>; |
| 18 | I2C2_ER => i2c::ErrorInterruptHandler<peripherals::I2C2>; | ||
| 18 | }); | 19 | }); |
| 19 | 20 | ||
| 20 | #[embassy_executor::main] | 21 | #[embassy_executor::main] |
