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/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/drivers/sensor/battery/CMakeLists.txt (limited to 'app/drivers/sensor/battery/CMakeLists.txt') diff --git a/app/drivers/sensor/battery/CMakeLists.txt b/app/drivers/sensor/battery/CMakeLists.txt new file mode 100644 index 0000000..1203e53 --- /dev/null +++ b/app/drivers/sensor/battery/CMakeLists.txt @@ -0,0 +1,10 @@ +# Copyright (c) 2020-2021 The ZMK Contributors +# SPDX-License-Identifier: MIT + +zephyr_include_directories(.) + +zephyr_library() + +zephyr_library_sources(battery_common.c) +zephyr_library_sources_ifdef(CONFIG_ZMK_BATTERY_NRF_VDDH battery_nrf_vddh.c) +zephyr_library_sources_ifdef(CONFIG_ZMK_BATTERY_VOLTAGE_DIVIDER battery_voltage_divider.c) \ No newline at end of file -- cgit v1.2.3