summaryrefslogtreecommitdiff
path: root/app/drivers/sensor/battery/CMakeLists.txt
diff options
context:
space:
mode:
authorJoel Spadin <joelspadin@gmail.com>2021-04-03 01:00:51 -0500
committerNick Winans <nick@winans.codes>2021-07-24 23:39:13 -0500
commita6de43e665ded4831d79159495660ac3a7d48e99 (patch)
treee2a3c4d4b79dd2e18723a564c29f7eb07b169daf /app/drivers/sensor/battery/CMakeLists.txt
parent824d605c2218ff01ece4391711d69f623fcc75c0 (diff)
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.
Diffstat (limited to 'app/drivers/sensor/battery/CMakeLists.txt')
-rw-r--r--app/drivers/sensor/battery/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
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