AP_BattMonitor: 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 77da6cf2b7
commit 85aee2e44a

View File

@ -6,8 +6,12 @@
#include <AP_Generator/AP_Generator_config.h>
#include <AP_Torqeedo/AP_Torqeedo_config.h>
#ifndef AP_BATTERY_ENABLED
#define AP_BATTERY_ENABLED 1
#endif
#ifndef AP_BATTERY_BACKEND_DEFAULT_ENABLED
#define AP_BATTERY_BACKEND_DEFAULT_ENABLED 1
#define AP_BATTERY_BACKEND_DEFAULT_ENABLED AP_BATTERY_ENABLED
#endif
#ifndef AP_BATTERY_ANALOG_ENABLED