Skip to content

Commit

Permalink
Follow ch32-hal usage and update dependencies (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainreignier authored Nov 1, 2024
1 parent 983ec5f commit 92d4b78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@ ch32-hal = { git = "https://github.com/ch32-rs/ch32-hal.git", features = [
"embassy",
"time-driver-tim2",
"rt",
"memory-x",
] }
embassy-executor = { version = "0.5.0", features = [
"nightly",
embassy-executor = { version = "0.6.1", features = [
"integrated-timers",
"arch-riscv32",
"executor-thread",
"task-arena-size-128", # or better use nightly, but fails on recent Rust versions
] }
embassy-time = { version = "0.3.0" }
qingke-rt = "0.2.1"
qingke = "0.2.0"
qingke-rt = "0.4.0"
qingke = "0.4.0"
embedded-hal = "1.0.0"
panic-halt = "0.2.0"
panic-halt = "1.0.0"

[profile.release]
strip = false # symbols are not flashed to the microcontroller, so don't strip them.
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2024-06-12"
channel = "nightly"
{% if mcu_family != "ch32v003" and mcu_family != "ch641" -%}
targets = ["{{ target }}"]
{%- endif %}
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ async fn blink(pin: AnyPin, interval_ms: u64) {
async fn main(spawner: Spawner) -> ! {
ch32_hal::debug::SDIPrint::enable();
let p = ch32_hal::init(ch32_hal::Config::default());
ch32_hal::embassy::init();

// Adjust the LED GPIO according to your board
spawner.spawn(blink(p.PA0.degrade(), 1000)).unwrap();
Expand Down

0 comments on commit 92d4b78

Please sign in to comment.