mirror of
https://github.com/hubaldv/bioz-firmware-rs.git
synced 2025-12-06 05:01:18 +00:00
Working communication, icd not as submodule.
This commit is contained in:
9
Cargo.lock
generated
9
Cargo.lock
generated
@@ -60,7 +60,7 @@ dependencies = [
|
|||||||
name = "bioz-firmware-rs"
|
name = "bioz-firmware-rs"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bioz-icd",
|
"bioz-icd-rs",
|
||||||
"bitflags 2.9.1",
|
"bitflags 2.9.1",
|
||||||
"cortex-m",
|
"cortex-m",
|
||||||
"cortex-m-rt",
|
"cortex-m-rt",
|
||||||
@@ -80,7 +80,7 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bioz-icd"
|
name = "bioz-icd-rs"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"postcard-rpc",
|
"postcard-rpc",
|
||||||
@@ -823,9 +823,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "postcard-rpc"
|
name = "postcard-rpc"
|
||||||
version = "0.11.12"
|
version = "0.11.13"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3d9107507c90cce8c36e4086f5b15cbee0148126359e81b4ccec5f47b5124893"
|
checksum = "e1af23d87c9a8308bbfaae655ac770ec10517e6448fa5e0b50838a36e5d860b9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"defmt 0.3.100",
|
"defmt 0.3.100",
|
||||||
"embassy-executor",
|
"embassy-executor",
|
||||||
@@ -840,6 +840,7 @@ dependencies = [
|
|||||||
"postcard-schema",
|
"postcard-schema",
|
||||||
"serde",
|
"serde",
|
||||||
"static_cell",
|
"static_cell",
|
||||||
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ defmt-rtt = "1.0.0"
|
|||||||
|
|
||||||
bitflags = "2.9.1"
|
bitflags = "2.9.1"
|
||||||
|
|
||||||
postcard-rpc = {version = "0.11.12", features = ["embassy-usb-0_4-server", "defmt"]}
|
postcard-rpc = {version = "0.11.13", features = ["embassy-usb-0_4-server", "defmt"]}
|
||||||
bioz-icd = {path = "../bioz-icd-rs"}
|
bioz-icd-rs = {path = "../bioz-icd-rs"}
|
||||||
|
|
||||||
cortex-m = { version = "0.7.7", features = ["inline-asm", "critical-section-single-core"] }
|
cortex-m = { version = "0.7.7", features = ["inline-asm", "critical-section-single-core"] }
|
||||||
cortex-m-rt = "0.7.5"
|
cortex-m-rt = "0.7.5"
|
||||||
|
|||||||
@@ -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;
|
pub struct Context;
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ define_dispatch! {
|
|||||||
fn usb_config() -> embassy_usb::Config<'static> {
|
fn usb_config() -> embassy_usb::Config<'static> {
|
||||||
let mut config = embassy_usb::Config::new(0x16c0, 0x27DD);
|
let mut config = embassy_usb::Config::new(0x16c0, 0x27DD);
|
||||||
config.manufacturer = Some("Hubald Verzijl");
|
config.manufacturer = Some("Hubald Verzijl");
|
||||||
config.product = Some("bioz-amplifier");
|
config.product = Some("Bioz Amplifier");
|
||||||
config.serial_number = Some("12345678");
|
config.serial_number = Some("12345678");
|
||||||
|
|
||||||
// Required for windows compatibility.
|
// 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 {
|
fn get_unique_id_handler(_context: &mut Context, _header: VarHeader, _rqst: ()) -> u64 {
|
||||||
error!("get_unique_id");
|
info!("get_unique_id");
|
||||||
200
|
200
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user