Working communication, icd not as submodule.

This commit is contained in:
2025-08-04 19:48:42 +02:00
parent 4cd3beba73
commit 142576b033
3 changed files with 11 additions and 13 deletions

9
Cargo.lock generated
View File

@@ -60,7 +60,7 @@ dependencies = [
name = "bioz-firmware-rs"
version = "0.1.0"
dependencies = [
"bioz-icd",
"bioz-icd-rs",
"bitflags 2.9.1",
"cortex-m",
"cortex-m-rt",
@@ -80,7 +80,7 @@ dependencies = [
]
[[package]]
name = "bioz-icd"
name = "bioz-icd-rs"
version = "0.1.0"
dependencies = [
"postcard-rpc",
@@ -823,9 +823,9 @@ dependencies = [
[[package]]
name = "postcard-rpc"
version = "0.11.12"
version = "0.11.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d9107507c90cce8c36e4086f5b15cbee0148126359e81b4ccec5f47b5124893"
checksum = "e1af23d87c9a8308bbfaae655ac770ec10517e6448fa5e0b50838a36e5d860b9"
dependencies = [
"defmt 0.3.100",
"embassy-executor",
@@ -840,6 +840,7 @@ dependencies = [
"postcard-schema",
"serde",
"static_cell",
"thiserror",
]
[[package]]

View File

@@ -19,8 +19,8 @@ defmt-rtt = "1.0.0"
bitflags = "2.9.1"
postcard-rpc = {version = "0.11.12", features = ["embassy-usb-0_4-server", "defmt"]}
bioz-icd = {path = "../bioz-icd-rs"}
postcard-rpc = {version = "0.11.13", features = ["embassy-usb-0_4-server", "defmt"]}
bioz-icd-rs = {path = "../bioz-icd-rs"}
cortex-m = { version = "0.7.7", features = ["inline-asm", "critical-section-single-core"] }
cortex-m-rt = "0.7.5"

View File

@@ -17,7 +17,7 @@ use postcard_rpc::{
},
};
use bioz_icd::{PingEndpoint, GetUniqueIdEndpoint, ENDPOINT_LIST, TOPICS_IN_LIST, TOPICS_OUT_LIST};
use bioz_icd_rs::{PingEndpoint, GetUniqueIdEndpoint, ENDPOINT_LIST, TOPICS_IN_LIST, TOPICS_OUT_LIST};
pub struct Context;
@@ -61,7 +61,7 @@ define_dispatch! {
fn usb_config() -> embassy_usb::Config<'static> {
let mut config = embassy_usb::Config::new(0x16c0, 0x27DD);
config.manufacturer = Some("Hubald Verzijl");
config.product = Some("bioz-amplifier");
config.product = Some("Bioz Amplifier");
config.serial_number = Some("12345678");
// Required for windows compatibility.
@@ -117,9 +117,6 @@ fn ping_handler(_context: &mut Context, _header: VarHeader, rqst: u32) -> u32 {
}
fn get_unique_id_handler(_context: &mut Context, _header: VarHeader, _rqst: ()) -> u64 {
error!("get_unique_id");
info!("get_unique_id");
200
}
}