AP_HAL_ChibiOS: use HAL_PROXIMITY_ENABLED in place of HAL_PERIPH_ENABLE_PRX

boolean truth rather than defines, and simplifies code
This commit is contained in:
Peter Barker 2023-06-06 07:43:50 +10:00 committed by Peter Barker
parent 78c5fe097b
commit 0ec35718d7
2 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,6 @@ define HAL_DISABLE_ADC_DRIVER TRUE
# support all proximity types
define HAL_PROXIMITY_ENABLED 1
define HAL_PERIPH_ENABLE_PRX
define AP_PERIPH_PRX_PORT_DEFAULT 2

View File

@ -3258,6 +3258,10 @@ INCLUDE common.ld
#define NOTIFY_LED_OVERRIDE_DEFAULT 1 // rgb_source_t::mavlink
#endif
#ifndef HAL_PROXIMITY_ENABLED
#define HAL_PROXIMITY_ENABLED 0
#endif
// end AP_Periph defaults
''')