From 2e03acfa6211d0f12d6a52fafc5bd8bde9899ac0 Mon Sep 17 00:00:00 2001 From: ju6ge Date: Thu, 31 Jul 2025 21:19:41 +0200 Subject: [PATCH] add ch32 peripheral access crate to dependencies --- Cargo.lock | 13 ++++++++++++- Cargo.toml | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 320d3f6..81f6882 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -37,6 +37,7 @@ name = "bms" version = "0.1.0" dependencies = [ "ch32-hal", + "ch32-metapac 0.0.6", "embassy-executor", "embassy-futures", "embassy-time", @@ -66,7 +67,7 @@ name = "ch32-hal" version = "0.1.0" source = "git+https://github.com/ch32-rs/ch32-hal#2b8e1c864ba5545ee65b1c77dcb17c86a471b70c" dependencies = [ - "ch32-metapac", + "ch32-metapac 0.1.0", "critical-section", "embassy-futures", "embassy-hal-internal", @@ -89,6 +90,16 @@ dependencies = [ "sdio-host", ] +[[package]] +name = "ch32-metapac" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edc8e84ea6d10960c6018df65845a5dfa87dfefbc3bb9f058b6ed2a24fec1db6" +dependencies = [ + "riscv 0.11.1", + "vcell", +] + [[package]] name = "ch32-metapac" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 8551842..ce4fc45 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,7 @@ panic-halt = "1.0" embedded-hal = "1.0.0" heapless = "0.8.0" micromath = { version = "2.1.0", features = ["num-traits"] } +ch32-metapac = { version = "0.0.6", features = ["ch32v203c8t6"] } [profile.dev] #lto = true