Skip to main content

Crate ch32_hal

Crate ch32_hal 

Source

Re-exports§

pub use ch32_metapac as pac;

Modules§

adc
ADC, Analog to Digital Converter
can
crc
CRC-32 calculation unit.
debug
The debug module.
delay
dma
DMA
embassy
exti
flash
Flash memory (FLASH) CH32 FLASH is relatively close to STM32. This module is heavily inspired from embassy-stm32
gpio
GPIO
i2c
Inter-Integrated-Circuit (I2C)
interrupt
Interrupt definitions.
mode
Operating modes for peripherals.
peripherals
Types for the peripheral singletons.
prelude
rcc
Reset and clock control (RCC).
signature
E-signature values for CH32 series MCUs
spi
SPI, Serial Peripheral Interface
time
Time units
timer
Timers, PWM.
usart
USART - Universal Synchronous Asynchronous Receiver Transmitter
usb
Shared USB endpoint-buffer helpers (not a controller driver).
usbd
Classic USB device-only (kind: usbd / EPR+BTABLE). Manual name: USBD. Universal Serial Bus Device(USBD)
wdg
Watchdog Timer (IWDG, WWDG)

Macros§

bind_interrupts
interrupt_mod
Generate a standard mod interrupt for a HAL.
print
println
try_println
println! over SDI that drops the message rather than spinning when the console is not armed. Use it in control loops; use [println!] when the console is known to be attached.

Structs§

Config
Peri
An exclusive reference to a peripheral.
Peripherals
Struct containing all the peripheral singletons.

Traits§

PeripheralType
Marker trait for peripheral types.
RccPeripheral
RemapPeripheral

Functions§

init
Initialize the HAL with the provided configuration.

Attribute Macros§

entry
interrupt
Marks a function as an interrupt handler. (Wrapping as a mret function)