This avoids placing them in RAM.
Signed-off-by: Keith Packard <keithp@keithp.com>
typedef ao_storage_pos_t ao_pos_t;
/* Total bytes of available storage */
typedef ao_storage_pos_t ao_pos_t;
/* Total bytes of available storage */
+#ifndef ao_storage_total
extern ao_pos_t ao_storage_total;
extern ao_pos_t ao_storage_total;
/* Block size - device is erased in these units. At least 256 bytes */
/* Block size - device is erased in these units. At least 256 bytes */
+#ifndef ao_storage_block
extern ao_pos_t ao_storage_block;
extern ao_pos_t ao_storage_block;
#ifndef USE_STORAGE_CONFIG
#define USE_STORAGE_CONFIG 1
#ifndef USE_STORAGE_CONFIG
#define USE_STORAGE_CONFIG 1
#endif
/* Storage unit size - device reads and writes must be within blocks of this size. Usually 256 bytes. */
#endif
/* Storage unit size - device reads and writes must be within blocks of this size. Usually 256 bytes. */
extern uint16_t ao_storage_unit;
extern uint16_t ao_storage_unit;
/* Initialize above values. Can only be called once the OS is running */
void
/* Initialize above values. Can only be called once the OS is running */
void