Skip to content

HAL for the CH583/CH582/CH581 family of microcontrollers. BLE 5.3, RISC-V Qingke V4.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

ch32-rs/ch58x-hal

Repository files navigation

ch58x-hal

Github Actions Crates.io Crates.io docs.rs

HAL for the CH58x RISC-V BLE microcotrollers from WCH.

This crate is under random and active development. DO NOT USE in production.

This should be the reference hal implementation for CH57x, CH58x, CH59x.

Features

  • Basic: clock init, delay, interrupt, etc.
  • Dedicated runtime: interrupt table, hardware stack push, highcode support, critical section implementation
  • embassy support
    • time driver with SysTick, defaults to 32KHz tick
    • about 7k flash rom overhead
  • GPIO, with async support
  • UART, basic blocking tx, rx
  • RTC, with datetime support
  • SysTick delay (conflicts with embassy time driver)
  • I2C
  • ADC, with Temperature sensor, VBAT sensor
  • SPI
  • libISP ROM functions
  • Basic BLE library support

Usage

Refer Cargo.toml and examples directory.

Notes

  • UNDOCUMENTED: tags in code comments means the information is not from official documents.

References

About

HAL for the CH583/CH582/CH581 family of microcontrollers. BLE 5.3, RISC-V Qingke V4.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published