Skip to content

Commit 35b9d6f

Browse files
authored
Merge pull request #22 from 9names/remove_erase_all
Remove erase_all function
2 parents c29c100 + 4ea2ecf commit 35b9d6f

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ version = "0.1.0"
77

88
[dependencies]
99
cortex-m = "0.7.0"
10-
flash-algorithm = "0.4.0"
10+
flash-algorithm = { version = "0.4.0", default-features = false, features = [
11+
"panic-handler",
12+
] }
1113

1214
# this lets you use `cargo fix`!
1315
[[bin]]

build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ cat <<EOF
3030
pc_uninit: $(sym UnInit)
3131
pc_program_page: $(sym ProgramPage)
3232
pc_erase_sector: $(sym EraseSector)
33-
pc_erase_all: $(sym EraseChip)
3433
EOF
File renamed without changes.

src/main.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ impl FlashAlgorithm for RP2040Algo {
7474
Ok(Self { funcs })
7575
}
7676

77-
fn erase_all(&mut self) -> Result<(), ErrorCode> {
78-
// todo
79-
Err(ErrorCode::new(0x70d0).unwrap())
80-
}
81-
8277
fn erase_sector(&mut self, addr: u32) -> Result<(), ErrorCode> {
8378
(self.funcs.flash_range_erase)(
8479
addr - FlashDevice.dev_addr,

0 commit comments

Comments
 (0)