External flash is usually 0xff for erased bytes, but other memory may
use different values
Signed-off-by: Keith Packard <keithp@keithp.com>
+#ifndef AO_STORAGE_ERASED_BYTE
+#define AO_STORAGE_ERASED_BYTE 0xff
+#endif
+
uint8_t
ao_storage_is_erased(uint32_t pos)
{
uint8_t
ao_storage_is_erased(uint32_t pos)
{
goto done;
}
for (i = 0; i < this_time; i++)
goto done;
}
for (i = 0; i < this_time; i++)
- if (storage_data[i] != 0xff) {
+ if (storage_data[i] != AO_STORAGE_ERASED_BYTE) {