From 334b2d94e19841bc77c2e1e4de18e3847387124d Mon Sep 17 00:00:00 2001 From: ju6ge Date: Sun, 28 Dec 2025 13:42:33 +0100 Subject: [PATCH] enable i2c interrupts --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 00727b8..40df2c6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,6 +16,8 @@ use {ch32_hal as hal, panic_halt as _}; bind_interrupts!(struct Irqs { USB_LP_CAN1_RX0 => InterruptHandler; + I2C1_EV => ch32_hal::i2c::EventInterruptHandler; + I2C1_ER => ch32_hal::i2c::ErrorInterruptHandler; }); #[embassy_executor::main(entry = "qingke_rt::entry")]