# 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:

```console
$ 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:

```console
$ 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`
