23 void battery_init(void);
24 void battery_led(battery_led_t val);
25 bool battery_charging(void);
26 uint16_t battery_voltage(void);
27 battery_status_t battery_status(void);
29 #define BATTERY_VOLTAGE_LOW_LIMIT 3500
30 #define BATTERY_VOLTAGE_LOW_RECOVERY 3700
31 // ADC offset:16, resolution:5mV
32 #define BATTERY_ADC_OFFSET 16
33 #define BATTERY_ADC_RESOLUTION 5