You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Copyright (c) 2020-2021 The ZMK Contributors
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
DT_COMPAT_ZMK_BATTERY_NRF_VDDH := zmk,battery-nrf-vddh
|
|
|
|
DT_COMPAT_ZMK_BATTERY_VOLTAGE_DIVIDER := zmk,battery-voltage-divider
|
|
|
|
|
|
|
|
config ZMK_BATTERY
|
|
|
|
bool "ZMK battery monitoring"
|
|
|
|
help
|
|
|
|
Enable battery monitoring
|
|
|
|
|
|
|
|
config ZMK_BATTERY_NRF_VDDH
|
|
|
|
bool
|
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_NRF_VDDH))
|
|
|
|
select ADC
|
|
|
|
select ZMK_BATTERY
|
|
|
|
help
|
|
|
|
Enable ZMK nRF VDDH voltage driver for battery monitoring.
|
|
|
|
|
|
|
|
config ZMK_BATTERY_VOLTAGE_DIVIDER
|
|
|
|
bool
|
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_BATTERY_VOLTAGE_DIVIDER))
|
|
|
|
select ADC
|
|
|
|
select ZMK_BATTERY
|
|
|
|
help
|
|
|
|
Enable ZMK battery voltage divider driver for battery monitoring.
|