Expand description
Minimal interrupt helpers mirroring embassy-imxrt style for OS_EVENT and LPUART2.
Type-level interrupt traits and bindings are provided by the
embassy_hal_internal::interrupt_mod! macro via the generated module below.
Modules§
- typelevel
- Type-level interrupt infrastructure.
Structs§
- Adc
- Default
Handler Snapshot - Gpio0
- Gpio1
- Gpio2
- Gpio3
- Gpio4
- Lpuart2
- LPUART2 interrupt helper with methods similar to embassy-imxrt’s InterruptExt.
- OsEvent
- OS_EVENT interrupt helper with methods similar to embassy-imxrt’s InterruptExt.
- Rtc
Enums§
- Priority
- The interrupt priority level.
Constants§
Traits§
- Interrupt
Ext - Trait for configuring and controlling interrupts.
Functions§
- Default
Handler ⚠ - Provide a conservative default IRQ handler that avoids wedging the system. It clears all NVIC pending bits and returns, so spurious or reserved IRQs don’t trap the core in an infinite WFI loop during bring-up.
- clear_
default_ handler_ snapshot - default_
handler_ snapshot - install_
irq_ ⚠handler - Install an interrupt handler into the current VTOR-based vector table.
This writes the function pointer at index 16 + irq number.
Safety: Caller must ensure VTOR points at a writable RAM table and that
handlerhas the correct ABI and lifetime. - os_
event_ ⚠install_ handler_ raw - Install OS_EVENT handler by raw address. Useful to avoid fn pointer type mismatches.
Safety: Caller must ensure the address is a valid
extern "C" fn()handler. - vtor_
set_ ⚠ram_ vector_ base - Set VTOR (Vector Table Offset) to a RAM-based vector table. Pass a pointer to the first word in the RAM table (stack pointer slot 0). Safety: Caller must ensure the RAM table is valid and aligned as required by the core.