mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-01 03:04:04 -04:00
We will reserve BOARD_FLASH_SIZE for the internal flash on stm32 flash processors, use HAL_PROGRAM_SIZE_LIMIT_KB in the general code base. Notable change here is that boards with external flash will start to get features only available with more than 2MB of program storage
80 lines
2.5 KiB
C
80 lines
2.5 KiB
C
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
#include <GCS_MAVLink/GCS_config.h>
|
|
#include <AP_RangeFinder/AP_RangeFinder_config.h>
|
|
|
|
#ifndef HAL_PROXIMITY_ENABLED
|
|
#define HAL_PROXIMITY_ENABLED HAL_PROGRAM_SIZE_LIMIT_KB > 1024
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#define AP_PROXIMITY_BACKEND_DEFAULT_ENABLED HAL_PROXIMITY_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_AIRSIMSITL_ENABLED
|
|
#define AP_PROXIMITY_AIRSIMSITL_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_CYGBOT_ENABLED
|
|
#define AP_PROXIMITY_CYGBOT_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_DRONECAN_ENABLED
|
|
#define AP_PROXIMITY_DRONECAN_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS
|
|
#endif
|
|
|
|
|
|
#ifndef AP_PROXIMITY_LD06_ENABLED
|
|
#define AP_PROXIMITY_LD06_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_LIGHTWARE_SF40C_ENABLED
|
|
#define AP_PROXIMITY_LIGHTWARE_SF40C_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_LIGHTWARE_SF45B_ENABLED
|
|
#define AP_PROXIMITY_LIGHTWARE_SF45B_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
|
|
#ifndef AP_PROXIMITY_MR72_ENABLED
|
|
#define AP_PROXIMITY_MR72_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && HAL_MAX_CAN_PROTOCOL_DRIVERS
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_SCRIPTING_ENABLED
|
|
#define AP_PROXIMITY_SCRIPTING_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && AP_SCRIPTING_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_MAV_ENABLED
|
|
#define AP_PROXIMITY_MAV_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_RANGEFINDER_ENABLED
|
|
#define AP_PROXIMITY_RANGEFINDER_ENABLED AP_RANGEFINDER_ENABLED && AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_RPLIDARA2_ENABLED
|
|
#define AP_PROXIMITY_RPLIDARA2_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_SITL_ENABLED
|
|
#define AP_PROXIMITY_SITL_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_TERARANGERTOWER_ENABLED
|
|
#define AP_PROXIMITY_TERARANGERTOWER_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_TERARANGERTOWEREVO_ENABLED
|
|
#define AP_PROXIMITY_TERARANGERTOWEREVO_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_LD06_ENABLED
|
|
#define AP_PROXIMITY_LD06_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_PROXIMITY_HEXSOONRADAR_ENABLED
|
|
#define AP_PROXIMITY_HEXSOONRADAR_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && HAL_MAX_CAN_PROTOCOL_DRIVERS
|
|
#endif
|