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")]