enable i2c interrupts

This commit is contained in:
2025-12-28 13:42:33 +01:00
parent b932379982
commit 334b2d94e1
+2
View File
@@ -16,6 +16,8 @@ use {ch32_hal as hal, panic_halt as _};
bind_interrupts!(struct Irqs {
USB_LP_CAN1_RX0 => InterruptHandler<USBD>;
I2C1_EV => ch32_hal::i2c::EventInterruptHandler<ch32_hal::peripherals::I2C1>;
I2C1_ER => ch32_hal::i2c::ErrorInterruptHandler<ch32_hal::peripherals::I2C1>;
});
#[embassy_executor::main(entry = "qingke_rt::entry")]