mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-11 02:13:57 -04:00
AP_HAL_ChibiOS: terrain turned on on 2Mb boards with littlefs
This commit is contained in:
parent
b556ffd1e0
commit
1abe46e923
@ -989,7 +989,6 @@ class ChibiOSHWDef(object):
|
||||
f.write('#define HAL_USE_SDC FALSE\n')
|
||||
self.build_flags.append('USE_FATFS=no')
|
||||
self.env_vars['WITH_LITTLEFS'] = "1"
|
||||
self.env_vars['DISABLE_SCRIPTING'] = True
|
||||
else:
|
||||
f.write('#define HAL_USE_SDC FALSE\n')
|
||||
self.build_flags.append('USE_FATFS=no')
|
||||
|
@ -11,13 +11,18 @@
|
||||
#endif
|
||||
|
||||
// a similar define is present in AP_HAL_Boards.h:
|
||||
// needed to compile chibios
|
||||
#ifndef HAL_OS_FATFS_IO
|
||||
#define HAL_OS_FATFS_IO 0
|
||||
#endif
|
||||
|
||||
#ifndef HAL_OS_LITTLEFS_IO
|
||||
#define HAL_OS_LITTLEFS_IO 0
|
||||
#endif
|
||||
|
||||
#ifndef AP_TERRAIN_AVAILABLE
|
||||
// enable terrain only if there's an SD card available:
|
||||
#define AP_TERRAIN_AVAILABLE HAL_OS_FATFS_IO
|
||||
#define AP_TERRAIN_AVAILABLE (HAL_OS_FATFS_IO || (HAL_OS_LITTLEFS_IO && (BOARD_FLASH_SIZE>1024)))
|
||||
#endif
|
||||
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
|
Loading…
Reference in New Issue
Block a user