Crates.io | va416xx |
lib.rs | va416xx |
version | |
source | src |
created_at | 2021-12-10 12:25:42.379094+00 |
updated_at | 2025-02-18 15:03:25.196721+00 |
description | PAC for the Vorago VA416xx family of MCUs |
homepage | https://egit.irs.uni-stuttgart.de/rust/va416xx-rs |
repository | https://egit.irs.uni-stuttgart.de/rust/va416xx-rs |
max_upload_size | |
id | 495692 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
This repository contains the Peripheral Access Crate (PAC) for Voragos VA416xx series of Cortex-M4 based microcontrollers.
The crate was generated using svd2rust
.
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.
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
and form
.
You can install all tools with cargo
:
cargo install --locked svd2rust svdtools form
Patch the vendor-provided SVD file svd/va41xx.svd
. This can be done using svdtools
in
conjunction with the svd/va416xx-patch.yml
file.
svdtools patch svd/va416xx-patch.yml
Use svd2rust
to generate the Rust library
svd2rust -i svd/va416xx.svd.patched
Use the form
tool to split the generated lib.rs
into individual modules.
form -i lib.rs -o src/
The gen-helper.sh
automates steps 2-4.