Expand description
This is the Hardware Abstraction Layer (HAL) for the VA108xx MCU family.
It 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.
The examples folder contains various example applications using the HAL.
Re-exports§
Modules§
- clock
- API for clock related functionality
- embassy_
time - Embassy-rs support for the Vorago VA108xx MCU family
- gpio
- GPIO support module.
- i2c
- API for the I2C peripheral
- pins
- Pin resource management singletons.
- prelude
- Prelude
- pwm
- API for Pulse-Width Modulation (PWM)
- spi
- API for the SPI peripheral.
- sysconfig
- time
- Time units
- timer
- API for the TIM peripherals
- uart
- API for the UART peripheral
Macros§
- embassy_
time_ driver_ irqs - Macro to define the IRQ handlers for the time driver.
Structs§
- Interrupt
Config - Generic interrupt config which can be used to specify whether the HAL driver will use the IRQSEL register to route an interrupt, and whether the IRQ will be unmasked in the Cortex-M0 NVIC. Both are generally necessary for IRQs to work, but the user might want to perform those steps themselves.
- Invalid
PinError
Enums§
Constants§
- IRQ_
DST_ NONE - This is the NONE destination reigster value for the IRQSEL peripheral.
Functions§
- disable_
nvic_ interrupt - Disable a specific interrupt using the NVIC peripheral.
- enable_
nvic_ ⚠interrupt - Enable a specific interrupt using the NVIC peripheral.
- port_
function_ select - Can be used to manually manipulate the function select of port pins.