cortex-m: rename Handler to DynHandler.

I want to use the name Handler for the new interrupt binding macro.
This commit is contained in:
Dario Nieuwenhuis
2023-02-21 22:19:06 +01:00
parent 403a83e08d
commit a054891263
3 changed files with 6 additions and 6 deletions

View File

@ -15,12 +15,12 @@ pub mod _export {
/// Implementation detail, do not use outside embassy crates.
#[doc(hidden)]
pub struct Handler {
pub struct DynHandler {
pub func: AtomicPtr<()>,
pub ctx: AtomicPtr<()>,
}
impl Handler {
impl DynHandler {
pub const fn new() -> Self {
Self {
func: AtomicPtr::new(ptr::null_mut()),
@ -51,7 +51,7 @@ pub unsafe trait Interrupt: Peripheral<P = Self> {
/// Implementation detail, do not use outside embassy crates.
#[doc(hidden)]
unsafe fn __handler(&self) -> &'static Handler;
unsafe fn __handler(&self) -> &'static DynHandler;
}
/// Represents additional behavior for all interrupts.