This crate provides svd2rust-generated bindings to the peripherals of PSoC 6 microcontrollers.
Please refer to the changelog to see what changed in the last releases.
Add an entry to your Cargo.toml
:
[dependencies]
psoc6-pac = "0.0.0"
Check the API Documentation for how to use the crate's functionality.
This crate supports the 3 latest stable Rust releases. Bumping the minimum supported Rust version (MSRV) is not considered a breaking change as long as these 3 versions are still supported.
The MSRV is also explicitly tested against in .travis.yml.
To regenerate the bindings, make sure that the current versions of svd2rust
and form
are installed, and that you're on the current stable Rust version.
Then run these commands to regenerate the bindings:
svd2rust -i svd/psoc63.svd
rm -rf src
form -i lib.rs -o src/ && rm lib.rs
cargo fmt