mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
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:
parent
78c5fe097b
commit
0ec35718d7
@ -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
|
||||
|
||||
|
@ -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
|
||||
''')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user