mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: allow for selection of Storage backend type at runtime
This commit is contained in:
parent
9578b9bcd4
commit
102b1c6879
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue