Skip to content

OpenDevicePartnership/mcxa-pac

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages