zmk/app
Joel Spadin 8a8e090ff6 refactor(battery)!: Deduplicate battery code
Changed the zmk,battery-voltage-divider and zmk,battery-nrf-vddh drivers
to support only SENSOR_CHAN_VOLTAGE, and changed the default battery
fetch mode to ZMK_BATTERY_REPORTING_FETCH_MODE_LITHIUM_VOLTAGE. This
allowed for removing the copy of lithium_ion_mv_to_pct() from the
driver code, leaving only the version in battery.c.

Custom boards/shields that use a fuel gauge driver instead of a voltage
sensor, will need the following added to their Kconfig.defconfig:

    choice ZMK_BATTERY_REPORTING_FETCH_MODE
        default ZMK_BATTERY_REPORTING_FETCH_MODE_STATE_OF_CHARGE
    endchoice

Alternatively, add the following to the _defconfig file:

    ZMK_BATTERY_REPORTING_FETCH_MODE_STATE_OF_CHARGE=y
2024-04-05 21:47:13 -05:00
..
boards refactor(battery)!: Deduplicate battery code 2024-04-05 21:47:13 -05:00
dts fix(pm): Fixes for dedicated on/off on peripherals. 2024-03-27 20:59:26 -07:00
include fix(pm): Use Zephyr created device slots. 2024-03-27 20:59:26 -07:00
keymap-module fix(build): Properly board revision keymaps. 2024-03-08 10:58:10 -08:00
module refactor(battery)!: Deduplicate battery code 2024-04-05 21:47:13 -05:00
scripts chore: make west scripts more pythonic and apply Black 2022-01-04 23:59:25 -05:00
src refactor(battery)!: Deduplicate battery code 2024-04-05 21:47:13 -05:00
tests chore: fix whitespace 2024-03-18 10:30:14 -07:00
.gitignore feat(metadata): Add YAML check/format npm scripts. 2021-09-11 00:50:36 -04:00
.prettierrc.js refactor: Add more checks to pre-commit 2023-04-24 16:07:04 -07:00
CMakeLists.txt fix(pm): Use Zephyr created device slots. 2024-03-27 20:59:26 -07:00
core-coverage.yml refactor: Add more checks to pre-commit 2023-04-24 16:07:04 -07:00
Kconfig refactor(battery)!: Deduplicate battery code 2024-04-05 21:47:13 -05:00
Kconfig.behaviors refactor: Add kscan sideband behavior driver 2024-03-27 20:59:26 -07:00
package-lock.json chore: Update Prettier 2023-04-24 16:07:04 -07:00
package.json chore: Update Prettier 2023-04-24 16:07:04 -07:00
prj.conf fix: Fix syscalls generation setup. 2024-02-09 14:32:46 -08:00
run-ble-test.sh feat(ble): Add security related tests. 2024-01-05 12:17:59 -08:00
run-test.sh feat(tests): Enable asserts for tests. 2024-01-14 16:19:30 -08:00
west.yml refactor: Remove explicit blocklist item. 2024-02-09 14:32:46 -08:00