mvertescher / psoc6-pac

Peripheral Access Crate for the PSoC 6 microcontroller family

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PSoC 6 Peripheral Access Crate

crates.io docs.rs Build Status

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.

Usage

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.

Rust version support

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.

Development

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

About

Peripheral Access Crate for the PSoC 6 microcontroller family

License:Other


Languages

Language:Rust 100.0%