mcxa-pac

Crates.iomcxa-pac
lib.rsmcxa-pac
version0.4.0
created_at2025-12-11 22:21:14.406963+00
updated_at2026-01-21 17:00:44.878594+00
descriptionPeripheral Access Crate for MCXA256 devices
homepage
repositoryhttps://github.com/OpenDevicePartnership/mcxa-pac
max_upload_size
id1980660
size15,002,092
Felipe Balbi (felipebalbi)

documentation

README

MCXA256 Peripheral Access Crate

This crate provides an autogenerated API for access to NXP MCXA256 peripherals. The API is generated using svd2rust.

Regenerating the PAC

On a unix-style OS:

$ svdtools patch patch/MCXA256.yaml
$ svd2rust -i svd/MCXA256.svd.patched --reexport-interrupt --ignore-groups --impl-defmt defmt --impl-debug --impl-debug-feature debug
$ rm -r src/*
$ form -i lib.rs -o src
$ rm lib.rs
$ cargo fmt

On Windows, replace / with \\ and additionally run dos2unix to convert line endings:

$ svdtools.exe patch patch\\MCXA256.yaml
$ svd2rust.exe -i svd\\MCXA256.xml.patched --reexport-interrupt --ignore-groups --impl-defmt defmt --impl-debug --impl-debug-feature debug
$ rm -r src\\*
$ form -i lib.rs -o src
$ rm lib.rs
$ cargo fmt
$ cd src
$ dos2unix **\\*.rs *.rs

SVD and patches

  • Original SVD file: svd/MCXA256.xml (see svd/README.md for download link)
  • Main patch file: patch/MCXA256.yaml
  • Add peripheral-specific patch files under patch/ and include them from MCXA256.yaml
Commit count: 17

cargo fmt