ch57x-pac
Peripheral Access Crate (PAC) for WCH CH57x RISC-V BLE microcontrollers.
This crate is generated using svd2rust and provides register-level access to CH57x peripherals.
Scope
no_stdPAC for CH57x-family register blocks- Interrupt definitions and vector table support via
rtfeature - Optional
critical-sectionintegration for embedded Rust ecosystem crates
Cargo
[]
= "0.1.3"
Features
rt(default): exports interrupt symbols/vector table glue expected by runtime cratescritical-section: enablescritical-sectionsupport
Minimal Usage
let p = take.unwrap;
p.sys.r8_clk_sys_cfg.modify;
docs.rs Notes
docs.rs builds with:
- target:
riscv32imac-unknown-none-elf - features:
rt,critical-section
CI/CD
- CI runs
cargo checkandcargo docon every push and pull request. - Publish workflow is configured to publish from version tags (or manual dispatch).
The publish job requires repository secret
CRATES_IO_TOKEN.
License
Licensed under either:
- Apache License, Version 2.0
- MIT license