AP_HAL: default SITL and Linux to have 4MB of "flash"

This commit is contained in:
Peter Barker 2024-08-01 09:32:24 +10:00 committed by Peter Barker
parent 894b99fce5
commit bc1c305629
2 changed files with 8 additions and 0 deletions

View File

@ -341,6 +341,10 @@
#error "no Linux board subtype set"
#endif
#ifndef BOARD_FLASH_SIZE
#define BOARD_FLASH_SIZE 4096
#endif
#ifndef HAL_OPTFLOW_PX4FLOW_I2C_ADDRESS
#define HAL_OPTFLOW_PX4FLOW_I2C_ADDRESS 0x42
#endif

View File

@ -29,6 +29,10 @@
#define HAL_FLASH_ALLOW_UPDATE 0
#endif
#ifndef BOARD_FLASH_SIZE
#define BOARD_FLASH_SIZE 4096
#endif
#ifndef HAL_STORAGE_SIZE
#define HAL_STORAGE_SIZE 32768
#endif