ch32-rs / ch32v00x-hal

HAL for the CH32V003 family of microcontrollers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ch32v00x-hal

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.

Peripheral status

  • 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

Guide on Rust with riscv32ec

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.

About

HAL for the CH32V003 family of microcontrollers


Languages

Language:Rust 99.8%Language:RPC 0.2%