aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/boot/src/lib.rs
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-03-31 10:28:47 +0200
committerRasmus Melchior Jacobsen <[email protected]>2023-03-31 10:28:47 +0200
commitd9d6fd6d70f3f9971c6db65b6962199f9da7913c (patch)
tree18d89cfb10ad13d80dcb3f4d3aab419aa8cc3413 /embassy-boot/boot/src/lib.rs
parent42931b51f25ca22d7df3a6e8e98bfab7904eb11e (diff)
Add erase and wipe tests
Diffstat (limited to 'embassy-boot/boot/src/lib.rs')
-rw-r--r--embassy-boot/boot/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-boot/boot/src/lib.rs b/embassy-boot/boot/src/lib.rs
index a2259411f..4c28d7aa4 100644
--- a/embassy-boot/boot/src/lib.rs
+++ b/embassy-boot/boot/src/lib.rs
@@ -313,7 +313,8 @@ mod tests {
313 )) 313 ))
314 .is_ok()); 314 .is_ok());
315 } 315 }
316 struct MemFlash<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize>([u8; SIZE]); 316
317 pub struct MemFlash<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize>(pub [u8; SIZE]);
317 318
318 impl<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize> NorFlash 319 impl<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize> NorFlash
319 for MemFlash<SIZE, ERASE_SIZE, WRITE_SIZE> 320 for MemFlash<SIZE, ERASE_SIZE, WRITE_SIZE>