add ch32 peripheral access crate to dependencies

This commit is contained in:
judge 2025-07-31 21:19:41 +02:00
parent e2a00874ac
commit 2e03acfa62
No known key found for this signature in database
GPG key ID: 6512C30DD8E017B5
2 changed files with 13 additions and 1 deletions

13
Cargo.lock generated
View file

@ -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"

View file

@ -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