This is a WIP implementation of the embedded-hal traits for the CH32V0 family of microcontrollers.
- CH32V003: Currently only chip in the family
UPDATE
CH641 is also a RISCV32EC core.
- PWR: Power control
- RCC: Reset and Clock Control
- IWDG: Independent Watchdog
- WWDG: Window Watchdog
- FPIC: Programmable Fast Interrupt Controller
- GPIO: General Purpose Input/Output
- AFIO: Alternate Function Input/Output
- DMA: Direct Memory Access control
- ADC: Analog to Digital Converter
- ADTM: Advanced control Timer (TIM1)
- GPTM: General Purpose Timer (TIM2)
- USART: Universal Synchronous Asynchronous Receiver Transmitter
- I2C: Inter-intergrated Circuit interface
- SPI: Serial Peripheral Interface
- ESIG: Electronic Signature
- FLASH: Flash memory and user option bytes
- EXTEND: Extended configuration
- DBG: Debug support
As of 2024-02-28, The RVE with +c extension for LLVM is merged and shipped with Rust nightly.
Plese refer to .cargo/config.toml
for the target override, and riscv32ec-unknown-none-elf.json
for the target specification.
Remember to use the latest nightly toolchain.