AP_HAL_ChibiOS: create and use AP_BATTERY_ENABLED

simply as a way to get HAL_PERIPH_ENABLE_BATTERY out of the main code
This commit is contained in:
Peter Barker 2023-06-20 16:08:14 +10:00 committed by Peter Barker
parent 85aee2e44a
commit 209cba7f89
1 changed files with 2 additions and 0 deletions

View File

@ -3272,6 +3272,8 @@ INCLUDE common.ld
#define AP_SCRIPTING_ENABLED 0 #define AP_SCRIPTING_ENABLED 0
#endif #endif
#define AP_BATTERY_ENABLED defined(HAL_PERIPH_ENABLE_BATTERY)
// end AP_Periph defaults // end AP_Periph defaults
''') ''')