Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ crc16 = "0.4.0"
critical-section = { version = "1.2.0", default-features = false }
defmt = "1.0.1"
defmt-or-log = { version = "0.2.1", default-features = false }
embedded-io = { version = "0.6.1" }
embedded-io = { version = "0.7.1" }
futures = { version = "0.3.31", default-features = false, features = [
"async-await",
] }
Expand Down
2 changes: 1 addition & 1 deletion examples/stm32g0-lilos-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cortex-m = { version = "0.7.4", features=["critical-section-single-core"] }
cortex-m-rt = "0.7.5"
critical-section = "1.2.0"
defmt = "1.0.1"
embedded-io = "0.6.1"
embedded-io = "0.7.1"
fdcan = { version = "0.2.1", features = ["fdcan_g0_g4_l5"] }
stm32-metapac = { version = "15.0.0", features = ["stm32g0b1cb", "rt"] }
hash32 = "1.0.0"
Expand Down
4 changes: 4 additions & 0 deletions zencan-common/src/device_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ pub enum AutoStartConfig {

/// Represents the configuration parameters for a single PDO
#[derive(Clone, Debug, Deserialize, PartialEq)]
#[serde(deny_unknown_fields)]
pub struct PdoDefaultConfig {
/// The COB ID this PDO will use to send/receive
pub cob_id: u32,
Expand Down Expand Up @@ -586,6 +587,7 @@ impl From<PdoDefaultConfigMapSerializer> for HashMap<usize, PdoDefaultConfig> {

/// Private struct for deserializing [pdos] section of device config TOML
#[derive(Debug, Deserialize)]
#[serde(deny_unknown_fields)]
struct DevicePdoConfigSerializer {
#[serde(default = "default_num_rpdo")]
/// The number of TX PDO slots available in the device. Defaults to 4.
Expand Down Expand Up @@ -658,6 +660,7 @@ pub struct IdentityConfig {

/// Configuration object to define a programmable bootloader section
#[derive(Clone, Debug, Deserialize)]
#[serde(deny_unknown_fields)]
pub struct BootloaderSection {
/// Name of the section
pub name: String,
Expand All @@ -667,6 +670,7 @@ pub struct BootloaderSection {

/// Configuration of bootloader parameters
#[derive(Clone, Deserialize, Debug, Default)]
#[serde(deny_unknown_fields)]
pub struct BootloaderConfig {
/// If true, this node is an application which supports resetting to a bootloader, rather than a
/// bootloader implementation
Expand Down
1 change: 1 addition & 0 deletions zencan-node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ pub use zencan_macro::build_object_dict;

// Re-export types used by generated code
pub use critical_section;
pub use embedded_io;
pub use zencan_common as common;

pub use bootloader::{BootloaderInfo, BootloaderSection, BootloaderSectionCallbacks};
Expand Down