This crate provides an autogenerated API for access to NXP MCXA256 peripherals. The API is generated using svd2rust.
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 fmtOn 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- 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 fromMCXA256.yaml