va416xx-rs/va416xx-hal
2024-06-22 14:26:34 +02:00
..
.cargo init commit 2024-06-12 11:48:13 +02:00
jlink init commit 2024-06-12 11:48:13 +02:00
src SPI peripheral implementation 2024-06-22 14:26:34 +02:00
.gitignore init commit 2024-06-12 11:48:13 +02:00
Cargo.toml UART, WDT and CLKGEN 2024-06-20 20:02:11 +02:00
jlink-gdb.sh init commit 2024-06-12 11:48:13 +02:00
LICENSE-APACHE init commit 2024-06-12 11:48:13 +02:00
memory.x init commit 2024-06-12 11:48:13 +02:00
NOTICE init commit 2024-06-12 11:48:13 +02:00
README.md init commit 2024-06-12 11:48:13 +02:00

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