Skip to content

Commit

Permalink
fix: remove unused flash settings
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jun 10, 2024
1 parent 26f1ba3 commit 8f8157f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
8 changes: 0 additions & 8 deletions hpm-metapac-gen/res/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,6 @@ pub struct MemoryRegion {
pub kind: MemoryRegionKind,
pub address: u32,
pub size: u32,
pub settings: Option<FlashSettings>,
}

#[derive(Debug, Eq, PartialEq, Clone)]
pub struct FlashSettings {
pub erase_size: u32,
pub write_size: u32,
pub erase_value: u8,
}

#[derive(Debug, Eq, PartialEq, Clone)]
Expand Down
9 changes: 0 additions & 9 deletions hpm-metapac-gen/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ pub struct MemoryRegion {
pub kind: MemoryRegionKind,
pub address: u32,
pub size: u32,
pub settings: Option<FlashSettings>,
}

// Notice:
Expand All @@ -321,18 +320,10 @@ impl std::fmt::Debug for MemoryRegion {
.field("kind", &self.kind)
.field("address", &format_args!("{:#x}", self.address))
.field("size", &self.size)
.field("settings", &self.settings)
.finish()
}
}

#[derive(Debug, Eq, PartialEq, Clone, Deserialize)]
pub struct FlashSettings {
pub erase_size: u32,
pub write_size: u32,
pub erase_value: u8,
}

#[derive(EnumDebug, Eq, PartialEq, Clone, Deserialize)]
pub enum MemoryRegionKind {
#[serde(rename = "flash")]
Expand Down

0 comments on commit 8f8157f

Please sign in to comment.