Add erase and wipe tests

This commit is contained in:
Rasmus Melchior Jacobsen
2023-03-31 10:28:47 +02:00
parent 42931b51f2
commit d9d6fd6d70
2 changed files with 48 additions and 1 deletions

View File

@ -313,7 +313,8 @@ mod tests {
))
.is_ok());
}
struct MemFlash<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize>([u8; SIZE]);
pub struct MemFlash<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize>(pub [u8; SIZE]);
impl<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize> NorFlash
for MemFlash<SIZE, ERASE_SIZE, WRITE_SIZE>