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/stm32h7/src/bin/camera.rs | |
| parent | e8ff5a2baf217ac7e52f119c0d17a9826ad60067 (diff) | |
stm32/i2c: add async, dual interrupt scaffolding.
Diffstat (limited to 'examples/stm32h7/src/bin/camera.rs')
| -rw-r--r-- | examples/stm32h7/src/bin/camera.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/camera.rs b/examples/stm32h7/src/bin/camera.rs index 23ece1c38..489fb03dd 100644 --- a/examples/stm32h7/src/bin/camera.rs +++ b/examples/stm32h7/src/bin/camera.rs | |||
| @@ -19,7 +19,8 @@ const HEIGHT: usize = 100; | |||
| 19 | static mut FRAME: [u32; WIDTH * HEIGHT / 2] = [0u32; WIDTH * HEIGHT / 2]; | 19 | static mut FRAME: [u32; WIDTH * HEIGHT / 2] = [0u32; WIDTH * HEIGHT / 2]; |
| 20 | 20 | ||
| 21 | bind_interrupts!(struct Irqs { | 21 | bind_interrupts!(struct Irqs { |
| 22 | I2C1_EV => i2c::InterruptHandler<peripherals::I2C1>; | 22 | I2C1_EV => i2c::EventInterruptHandler<peripherals::I2C1>; |
| 23 | I2C1_ER => i2c::ErrorInterruptHandler<peripherals::I2C1>; | ||
| 23 | DCMI => dcmi::InterruptHandler<peripherals::DCMI>; | 24 | DCMI => dcmi::InterruptHandler<peripherals::DCMI>; |
| 24 | }); | 25 | }); |
| 25 | 26 | ||
