#risc-v #wch #low-level #ch32v

no-std qingke

Low level access to WCH's QingKe RISC-V processors

14 releases

0.2.0 May 11, 2024
0.1.11 Apr 28, 2024
0.1.9 Mar 27, 2024
0.1.5 Dec 24, 2023
0.1.0 Feb 19, 2023

#250 in Embedded development

Download history 247/week @ 2024-03-21 80/week @ 2024-03-28 31/week @ 2024-04-04 105/week @ 2024-04-11 30/week @ 2024-04-18 180/week @ 2024-04-25 26/week @ 2024-05-02 355/week @ 2024-05-09 43/week @ 2024-05-16 26/week @ 2024-05-23 36/week @ 2024-05-30 17/week @ 2024-06-06 19/week @ 2024-06-13 13/week @ 2024-06-20 4/week @ 2024-06-27

56 downloads per month
Used in 2 crates

MIT/Apache

16KB
339 lines

qingke & qingke-rt

Crates.io Crates.io docs.rs

Low level access to WCH's QingKe RISC-V processors.

qingke-rt

This crate provides the runtime support for QingKe RISC-V processors.

This provides riscv/riscv-rt like functionality, with the following differences:

  • Use vector table for interrupt handling
  • Handle 1KB address alignment for the entry point(Qingke V2)
  • In-SRAM code executing, highcode handling
  • PFIC support
  • Conflicts with riscv-rt crate

Usage

#[qingke_rt::entry]
fn main() -> ! {
    loop {}
}

// Or if you are using the embassy framework
#[embassy_executor::main(entry = "qingke_rt::entry")]
async fn main(spawner: Spawner) -> ! { ... }

#[qingke_rt::interrupt]
fn UART0() {
    // ...
}

#[qingke_rt::highcode]
fn some_highcode_fn() {
    // ...
    // This fn will be loaded into the highcode(SRAM) section.
    // This is required for BLE, recommended for interrupt handles.
}

Dependencies

~200–370KB