Skip to content

OpenDevicePartnership/npcx490m-pac

NPCX490M Peripheral Access Crate

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

Regenerating the PAC

$ svdtools patch patch/NPCX490M.yaml
$ svd2rust -i svd/NPCX490M.svd.patched --reexport-interrupt --reexport-core-peripherals --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 you need to replace the / with \ and additionally run dos2unix to convert the line endings, like so:

$ svdtools.exe patch patch\NPCX490M.yaml
$ svd2rust.exe -i svd\NPCX490M.svd.patched --reexport-interrupt --reexport-core-peripherals --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

About

Embedded PAC for Nuvoton NPCX490M MCU

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8

Languages