This allows products to include the 'w' command for testing flash
writing as needed.
Signed-off-by: Keith Packard <keithp@keithp.com>
/* not enough space for this today
*/
/* not enough space for this today
*/
void
ao_storage_info(void) __reentrant
{
void
ao_storage_info(void) __reentrant
{
printf("Storage size: %ld\n", ao_storage_total);
printf("Storage erase unit: %ld\n", ao_storage_block);
ao_storage_device_info();
printf("Storage size: %ld\n", ao_storage_total);
printf("Storage erase unit: %ld\n", ao_storage_block);
ao_storage_device_info();
__code struct ao_cmds ao_storage_cmds[] = {
{ ao_storage_info, "f\0Show storage" },
{ ao_storage_dump, "e <block>\0Dump flash" },
__code struct ao_cmds ao_storage_cmds[] = {
{ ao_storage_info, "f\0Show storage" },
{ ao_storage_dump, "e <block>\0Dump flash" },
{ ao_storage_store, "w <block> <start> <len> <data> ...\0Write data to flash" },
#endif
{ ao_storage_zap, "z <block>\0Erase <block>" },
{ ao_storage_store, "w <block> <start> <len> <data> ...\0Write data to flash" },
#endif
{ ao_storage_zap, "z <block>\0Erase <block>" },