AP_MSP: use minimize.inc for HAL_MSP_ENABLED and dependencies

This commit is contained in:
Peter Barker 2023-06-08 20:35:01 +10:00 committed by Randy Mackay
parent 8e0a879122
commit 3750a632e3

View File

@ -3,15 +3,15 @@
#include <AP_HAL/AP_HAL_Boards.h> #include <AP_HAL/AP_HAL_Boards.h>
#ifndef HAL_MSP_ENABLED #ifndef HAL_MSP_ENABLED
#define HAL_MSP_ENABLED !HAL_MINIMIZE_FEATURES #define HAL_MSP_ENABLED 1
#endif #endif
// define for enabling MSP sensor drivers // define for enabling MSP sensor drivers
#ifndef HAL_MSP_SENSORS_ENABLED #ifndef HAL_MSP_SENSORS_ENABLED
#define HAL_MSP_SENSORS_ENABLED HAL_MSP_ENABLED && !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) #define HAL_MSP_SENSORS_ENABLED HAL_MSP_ENABLED && !defined(HAL_BUILD_AP_PERIPH)
#endif #endif
// define for enabling MSP DisplayPort // define for enabling MSP DisplayPort
#ifndef HAL_WITH_MSP_DISPLAYPORT #ifndef HAL_WITH_MSP_DISPLAYPORT
#define HAL_WITH_MSP_DISPLAYPORT HAL_MSP_ENABLED && !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) #define HAL_WITH_MSP_DISPLAYPORT HAL_MSP_ENABLED && !defined(HAL_BUILD_AP_PERIPH)
#endif #endif