[FL-1991] Rewrite flash driver (#813)

* Toolbox: fix null pointer dereference in manchester decoder.
* FuriHal: use MPU to protect from null pointer dereference, replace flash driver with our own implementation.
This commit is contained in:
あく
2021-11-10 12:53:00 +03:00
committed by GitHub
parent 90d450368c
commit 5209701add
15 changed files with 535 additions and 293 deletions

View File

@@ -121,7 +121,7 @@ static int storage_int_device_erase(const struct lfs_config* c, lfs_block_t bloc
FURI_LOG_D(TAG, "Device erase: page %d, translated page: %x", block, page);
if(furi_hal_flash_erase(page, 1)) {
if(furi_hal_flash_erase(page)) {
return 0;
} else {
return -1;