3 unstable releases
0.2.0 | Jun 25, 2024 |
---|---|
0.1.1 | Dec 10, 2021 |
0.1.0 | Dec 10, 2021 |
#247 in Embedded development
Used in 2 crates
(via va416xx-hal)
2MB
40K
SLoC
PAC for the Vorago VA416xx microcontroller family
This repository contains the Peripheral Access Crate (PAC) for Voragos VA416xx series of Cortex-M4 based microcontrollers.
The crate was generated using svd2rust
.
Usage
To use this crate, add this to your Cargo.toml
[dependencies.va416xx]
version = "<MostRecentVersion>"
features = ["rt"]
The rt
feature is optional and recommended. It brings in support for cortex-m-rt
.
For full details on the autgenerated API, you can read the svd2rust documentation.
Regenerating the PAC
If you want to re-generate the PAC, for example if the register file va416xx.svd
changes
or the svd2rust
version is updated, you can do some using the following these steps:
-
Make sure all necessary tools are installed:
svd2rust
,svdtools
andform
. You can install all tools withcargo
:cargo install --locked svd2rust svdtools form
-
Patch the vendor-provided SVD file
svd/va41xx.svd
. This can be done usingsvdtools
in conjunction with thesvd/va416xx-patch.yml
file.svdtools patch svd/va416xx-patch.yml
-
Use
svd2rust
to generate the Rust librarysvd2rust -i svd/va416xx.svd.patched
-
Use the
form
tool to split the generatedlib.rs
into individual modules.form -i lib.rs -o src/
The gen-helper.sh
automates steps 2-4.
Dependencies
~720KB