agausmann / qingke

Low level and runtime support for WCH's 32bit QingKe RISC-V MCUs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qingke

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

qingke-rt

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

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.
}

About

Low level and runtime support for WCH's 32bit QingKe RISC-V MCUs

License:Apache License 2.0


Languages

Language:Rust 100.0%