altos: Move ao_storage_erase to shared code. Add len
authorKeith Packard <keithp@keithp.com>
Tue, 9 Jun 2020 04:01:31 +0000 (21:01 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 9 Jun 2020 04:17:55 +0000 (21:17 -0700)
commit936eceded2d08f4eb7318b28bd1be6cd3b06a7b3
tree8940f1b09464a6762a51cfb63fe31fad8d40da88
parente142c4bd6f2fbab74fb7b7cea7e9a19234ed0123
altos: Move ao_storage_erase to shared code. Add len

This makes ao_storage_erase take an arbitrary length. The new version
erases each storage block if there's any un-erased data present, and
then also checks after erasing to make sure the block is clear.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_m25.c
src/kernel/ao_config.h
src/kernel/ao_storage.c
src/kernel/ao_storage.h
src/micropeak-v2.0/ao_micropeak.c
src/stmf0/ao_storage_stm.c