enable i2c interrupts
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user