mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
AP_HAL_Boards: board specific storage size definition
This commit is contained in:
parent
7b9c3bf707
commit
7663c5898e
@ -53,39 +53,53 @@
|
||||
#define AP_HAL_BOARD_DRIVER AP_HAL_AVR_APM1
|
||||
#define HAL_BOARD_NAME "APM 1"
|
||||
#define HAL_CPU_CLASS HAL_CPU_CLASS_16
|
||||
#define HAL_STORAGE_SIZE 4096
|
||||
#define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
|
||||
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
#define AP_HAL_BOARD_DRIVER AP_HAL_AVR_APM2
|
||||
#define HAL_BOARD_NAME "APM 2"
|
||||
#define HAL_CPU_CLASS HAL_CPU_CLASS_16
|
||||
#define HAL_STORAGE_SIZE 4096
|
||||
#define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
|
||||
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
|
||||
#define AP_HAL_BOARD_DRIVER AP_HAL_AVR_SITL
|
||||
#define HAL_BOARD_NAME "SITL"
|
||||
#define HAL_CPU_CLASS HAL_CPU_CLASS_1000
|
||||
#define HAL_OS_POSIX_IO 1
|
||||
#define HAL_STORAGE_SIZE 4096
|
||||
#define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
|
||||
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_FLYMAPLE
|
||||
#define AP_HAL_BOARD_DRIVER AP_HAL_FLYMAPLE
|
||||
#define HAL_BOARD_NAME "FLYMAPLE"
|
||||
#define HAL_CPU_CLASS HAL_CPU_CLASS_75
|
||||
#define HAL_STORAGE_SIZE 4096
|
||||
#define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
|
||||
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||||
#define AP_HAL_BOARD_DRIVER AP_HAL_PX4
|
||||
#define HAL_BOARD_NAME "PX4"
|
||||
#define HAL_CPU_CLASS HAL_CPU_CLASS_150
|
||||
#define HAL_OS_POSIX_IO 1
|
||||
#define HAL_STORAGE_SIZE 4096
|
||||
#define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
|
||||
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||
#define AP_HAL_BOARD_DRIVER AP_HAL_Linux
|
||||
#define HAL_BOARD_NAME "Linux"
|
||||
#define HAL_CPU_CLASS HAL_CPU_CLASS_1000
|
||||
#define HAL_OS_POSIX_IO 1
|
||||
#define HAL_STORAGE_SIZE 4096
|
||||
#define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
|
||||
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_EMPTY
|
||||
#define AP_HAL_BOARD_DRIVER AP_HAL_Empty
|
||||
#define HAL_BOARD_NAME "EMPTY"
|
||||
#define HAL_CPU_CLASS HAL_CPU_CLASS_16
|
||||
#define HAL_STORAGE_SIZE 4096
|
||||
#define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
|
||||
|
||||
#else
|
||||
#error "Unknown CONFIG_HAL_BOARD type"
|
||||
|
Loading…
Reference in New Issue
Block a user