Driver to monitor the internal backup battery status. More...
Driver to monitor the internal backup battery status.
The backup battery must be connected with the VBAT pin and GND. On most development boards you will have to remove a solder bridge that connects VDD with VBAT. The battery is used to retain the backup domain register and RTC register content while power (VDD) is off.
The actual driver is implemented as a CPU feature. A board that supports backup battery monitoring via ADC, must
#define VBAT_ADC ADC_LINE(x), where
x is the index of the internal VBAT ADC line in
adc_config in periph_conf.h.
|Interface of backup battery (VBAT) monitoring. |
|Initialize backup battery monitoring. More...|
|Sample backup battery. More...|
|Sample the backup battery and compare the result with the minimum value required to power the backup domain. More...|
Initialize backup battery monitoring.
Sample the backup battery and compare the result with the minimum value required to power the backup domain.
Sample backup battery.