Mention how handlers are run when drivers are moved across cores (#1568)
This commit is contained in:
parent
ef290a9a78
commit
9acf72df33
@ -64,6 +64,10 @@ mod riscv;
|
|||||||
mod xtensa;
|
mod xtensa;
|
||||||
|
|
||||||
/// An interrupt handler
|
/// 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)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
||||||
pub struct InterruptHandler {
|
pub struct InterruptHandler {
|
||||||
f: extern "C" fn(),
|
f: extern "C" fn(),
|
||||||
|
|||||||
@ -226,6 +226,5 @@ mod tests {
|
|||||||
|
|
||||||
assert_eq!(io2.is_low(), true);
|
assert_eq!(io2.is_low(), true);
|
||||||
assert_eq!(io4.is_low(), true);
|
assert_eq!(io4.is_low(), true);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user