implement card storing
This commit is contained in:
@@ -37,4 +37,8 @@ impl Store {
|
||||
pub fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), StoreError> {
|
||||
self.storage.read(FLASH_ADDR + offset, bytes)
|
||||
}
|
||||
|
||||
pub fn write(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), StoreError> {
|
||||
self.storage.write(FLASH_ADDR + offset, bytes)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user