AP_HAL: allow for selection of Storage backend type at runtime

This commit is contained in:
Peter Barker 2021-06-11 12:30:38 +10:00 committed by Andrew Tridgell
parent 9578b9bcd4
commit 102b1c6879
1 changed files with 0 additions and 3 deletions

View File

@ -10,8 +10,6 @@
#define AP_FLASHSTORAGE_TYPE 3
#if defined(STORAGE_USE_FLASH) && STORAGE_USE_FLASH==1
#if AP_FLASHSTORAGE_TYPE == 1
// emulate F1/F3 flash
#define HAL_STORAGE_SIZE 15360
@ -33,7 +31,6 @@
#define HAL_FLASH_MIN_WRITE_SIZE 32
#define HAL_FLASH_ALLOW_UPDATE 0
#endif
#endif
#ifndef HAL_STORAGE_SIZE
#define HAL_STORAGE_SIZE 32768