diff --git a/esp-hal/src/interrupt/mod.rs b/esp-hal/src/interrupt/mod.rs index 9f620a86b..e28e6a566 100644 --- a/esp-hal/src/interrupt/mod.rs +++ b/esp-hal/src/interrupt/mod.rs @@ -64,6 +64,10 @@ mod riscv; mod xtensa; /// An interrupt handler +#[cfg_attr( + multi_core, + doc = "**Note**: Interrupts are handled on the core they were setup on, if a driver is initialized on core 0, and moved to core 1, core 0 will still handle the interrupt." +)] #[derive(Copy, Clone, Debug, PartialEq, Eq)] pub struct InterruptHandler { f: extern "C" fn(), diff --git a/hil-test/tests/gpio.rs b/hil-test/tests/gpio.rs index d2583c7a3..3f356c09f 100644 --- a/hil-test/tests/gpio.rs +++ b/hil-test/tests/gpio.rs @@ -113,7 +113,7 @@ mod tests { #[test] async fn test_a_pin_can_wait(_ctx: Context<'static>) { - let mut first = Input::new( unsafe { GpioPin::<0>::steal() } , Pull::Down); + let mut first = Input::new(unsafe { GpioPin::<0>::steal() }, Pull::Down); embassy_futures::select::select( first.wait_for_rising_edge(), @@ -226,6 +226,5 @@ mod tests { assert_eq!(io2.is_low(), true); assert_eq!(io4.is_low(), true); - } }