2021-04-03 17:00:51 +11:00
|
|
|
# Copyright (c) 2020-2021 The ZMK Contributors
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2022-04-19 12:02:20 +10:00
|
|
|
DT_COMPAT_ZMK_BATTERY_NRF_VDDH := zmk,battery-nrf-vddh
|
|
|
|
DT_COMPAT_ZMK_BATTERY_VOLTAGE_DIVIDER := zmk,battery-voltage-divider
|
|
|
|
|
2021-04-03 17:00:51 +11:00
|
|
|
config ZMK_BATTERY
|
|
|
|
bool "ZMK battery monitoring"
|
|
|
|
help
|
|
|
|
Enable battery monitoring
|
|
|
|
|
|
|
|
config ZMK_BATTERY_NRF_VDDH
|
2022-04-19 12:02:20 +10:00
|
|
|
bool
|
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_NRF_VDDH))
|
2021-04-03 17:00:51 +11:00
|
|
|
select ADC
|
|
|
|
select ZMK_BATTERY
|
|
|
|
help
|
|
|
|
Enable ZMK nRF VDDH voltage driver for battery monitoring.
|
|
|
|
|
|
|
|
config ZMK_BATTERY_VOLTAGE_DIVIDER
|
2022-04-19 12:02:20 +10:00
|
|
|
bool
|
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_VOLTAGE_DIVIDER))
|
2021-04-03 17:00:51 +11:00
|
|
|
select ADC
|
|
|
|
select ZMK_BATTERY
|
|
|
|
help
|
|
|
|
Enable ZMK battery voltage divider driver for battery monitoring.
|