8个版本
0.2.1 | 2024年5月14日 |
---|---|
0.2.0 | 2024年5月11日 |
0.1.12 | 2024年5月9日 |
0.1.11 | 2024年4月28日 |
0.1.7 | 2024年1月1日 |
1899 在 嵌入式开发 中排名
每月 下载 108 次
用于 ch58x-hal
37KB
892 代码行
qingke-rt
由于名称不适用于发布,因此替换了 ch32v-rt
QingKe是RISC-V核心的名称。
用法
#[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() {
// ...
}
// Interrupt provided by the IP core (not peripherals)
#[qingke_rt::interrupt(core)]
fn SysTick() {
// ...
}
#[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.
}
lib.rs
:
与riscv-rt版本的差异
- 异常处理器的结构不同
- 核心中断处理器的结构不同
- 支持硬件堆栈推送,因此无需手动推送
依赖项
~1.5MB
~39K SLoC