aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h5/src/bin
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-11-18 01:18:23 +0100
committerDario Nieuwenhuis <[email protected]>2023-11-24 23:55:45 +0100
commitbc65b8f7ec1df181c793846b7c0657f689963d3a (patch)
tree2df4ad2570808ba805f154f0dd5f7dea38131938 /examples/stm32h5/src/bin
parente8ff5a2baf217ac7e52f119c0d17a9826ad60067 (diff)
stm32/i2c: add async, dual interrupt scaffolding.
Diffstat (limited to 'examples/stm32h5/src/bin')
-rw-r--r--examples/stm32h5/src/bin/i2c.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/stm32h5/src/bin/i2c.rs b/examples/stm32h5/src/bin/i2c.rs
index 8b1662f39..31783a2bf 100644
--- a/examples/stm32h5/src/bin/i2c.rs
+++ b/examples/stm32h5/src/bin/i2c.rs
@@ -13,7 +13,8 @@ const ADDRESS: u8 = 0x5F;
13const WHOAMI: u8 = 0x0F; 13const WHOAMI: u8 = 0x0F;
14 14
15bind_interrupts!(struct Irqs { 15bind_interrupts!(struct Irqs {
16 I2C2_EV => i2c::InterruptHandler<peripherals::I2C2>; 16 I2C2_EV => i2c::EventInterruptHandler<peripherals::I2C2>;
17 I2C2_ER => i2c::ErrorInterruptHandler<peripherals::I2C2>;
17}); 18});
18 19
19#[embassy_executor::main] 20#[embassy_executor::main]