Expand description
§Embassy MCXA256 HAL
A Hardware Abstraction Layer (HAL) for the NXP MCXA256 microcontroller using the Embassy async framework. This HAL provides safe, idiomatic Rust interfaces for GPIO, UART, and OSTIMER peripherals.
Re-exports§
pub use mcxa_pac as pac;
Modules§
- adc
- ADC driver
- clkout
- CLKOUT pseudo-peripheral
- clocks
- Clock Module
- config
- crc
- Cyclic Redundancy Check (CRC)
- dma
- DMA driver for MCXA276.
- gpio
- GPIO driver built around a type-erased
Flexpin, similar to other Embassy HALs. The exportedOutput/Inputdrivers own aFlexso they no longer depend on the concrete pin type. - i2c
- I2C Support
- interrupt
- Interrupt definitions.
- lpuart
- ostimer
- Time Driver.
- peripherals
- Types for the peripheral singletons.
- reset_
reason - Reset reason
- rtc
- RTC DateTime driver.
- trng
- True Random Number Generator
- wwdt
- Windowed Watchdog Timer (WWDT) driver for MCXA microcontrollers.
Macros§
- bind_
interrupts - Macro to bind interrupts to handlers, similar to embassy-imxrt.
Structs§
- Peripherals
- Struct containing all the peripheral singletons.
Constants§
- NVIC_
PRIO_ BITS - Number available in the NVIC for configuring priority
Functions§
- init
- Initialize HAL with configuration (mirrors embassy-imxrt style). Minimal: just take peripherals. Also applies configurable NVIC priority for the OSTIMER OS_EVENT interrupt (no enabling).