1.6 KiB
HAL for the Vorago VA416xx MCU family
This repository contains the Hardware Abstraction Layer (HAL), which is an additional hardware abstraction on top of the peripheral access API.
It is the result of reading the datasheet for the device and encoding a type-safe layer over the raw PAC. This crate also implements traits specified by the embedded-hal project, making it compatible with various drivers in the embedded rust ecosystem.
Supported Boards
The first way to use this HAL will probably be with the PEB1 development board. The BSP provided for this board also contains instructions how to flash the board.
Building
Building an application requires the thumbv7em-none-eabihf
cross-compiler toolchain.
If you have not installed it yet, you can do so with
rustup target add thumbv7em-none-eabihf
After that, you can use cargo build
to build the development version of the crate.
If you have not done this yet, it is recommended to read some of the excellent resources available to learn Rust:
Using the .cargo/config.toml
file
Use the following command to have a starting config.toml
file
cp .cargo/def-config.toml .cargo/config.toml
You then can adapt the config.toml
to your needs. For example, you can configure runners
to conveniently flash with cargo run
.
Setting up your own binary crate
TODO