From a6de43e665ded4831d79159495660ac3a7d48e99 Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Sat, 3 Apr 2021 01:00:51 -0500 Subject: feat: Add nrf VDDH battery driver Added a driver which uses the nRF52's ADC channel on the VDDH pin to read the battery voltage when using high voltage mode. --- app/drivers/sensor/battery/Kconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/drivers/sensor/battery/Kconfig (limited to 'app/drivers/sensor/battery/Kconfig') diff --git a/app/drivers/sensor/battery/Kconfig b/app/drivers/sensor/battery/Kconfig new file mode 100644 index 0000000..fd8cd26 --- /dev/null +++ b/app/drivers/sensor/battery/Kconfig @@ -0,0 +1,21 @@ +# Copyright (c) 2020-2021 The ZMK Contributors +# SPDX-License-Identifier: MIT + +config ZMK_BATTERY + bool "ZMK battery monitoring" + help + Enable battery monitoring + +config ZMK_BATTERY_NRF_VDDH + bool "ZMK nRF VDDH battery monitoring" + select ADC + select ZMK_BATTERY + help + Enable ZMK nRF VDDH voltage driver for battery monitoring. + +config ZMK_BATTERY_VOLTAGE_DIVIDER + bool "ZMK battery voltage divider" + select ADC + select ZMK_BATTERY + help + Enable ZMK battery voltage divider driver for battery monitoring. -- cgit v1.2.3