zmk/app/boards/arm
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
..
adafruit_kb2040 fix(boards): Base config/overlay for rp2040 boards 2023-04-05 22:55:38 -07:00
adafruit_qt_py_rp2040 fix(boards): Base config/overlay for rp2040 boards 2023-04-05 22:55:38 -07:00
adv360pro fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
bdn9 refactor: Remove unimportant labels 2023-12-04 20:06:54 -06:00
blackpill_f401cc feat(boards): allow use of blackpill_f401cc 2024-02-10 16:15:09 -08:00
blackpill_f401ce feat(boards): Add PillBug board, blackpill interconnect. 2022-12-10 22:01:37 -06:00
blackpill_f411ce feat(boards): Add PillBug board, blackpill interconnect. 2022-12-10 22:01:37 -06:00
bluemicro840 feat(boards): Make west flash work with new UF2 runner. 2024-02-09 14:32:46 -08:00
boardsource_blok fix(boards): Base config/overlay for rp2040 boards 2023-04-05 22:55:38 -07:00
bt60 fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
ckp fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
corneish_zen refactor(battery)!: Deduplicate battery code 2024-04-05 21:47:13 -05:00
dz60rgb fix(boards): Remove references to PINMUX Kconfig. 2024-02-09 14:32:46 -08:00
ferris refactor: replace quick_tap_ms with quick-tap-ms 2024-03-18 10:15:50 -07:00
glove80 fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
kbdfans_tofu65 refactor: use zmk,matrix-transform instead of zmk,matrix_transform 2024-01-23 23:02:35 -06:00
mikoto feat(boards): Make west flash work with new UF2 runner. 2024-02-09 14:32:46 -08:00
nice60 fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
nice_nano feat(boards): Make west flash work with new UF2 runner. 2024-02-09 14:32:46 -08:00
nrf5340dk_nrf5340_cpuapp fix(boards): replace nRF3840 with nRF5340 2022-12-22 20:42:57 -06:00
nrf52840_m2 refactor: Remove unimportant labels 2023-12-04 20:06:54 -06:00
nrf52840dk_nrf52840 feat(boards): Add Arduino Uno interconnect, nrf52840dk config. 2022-12-10 17:40:57 -06:00
nrfmicro fix(boards): Add ext power init delay for nrfMicro 2024-02-19 19:32:12 -05:00
pillbug feat(boards): Make west flash work with new UF2 runner. 2024-02-09 14:32:46 -08:00
planck feat(boards): add encoder support to planck 2024-02-19 17:01:10 -08:00
preonic fix(boards): Assign preonic_rev3 chosen console 2024-01-27 07:18:45 -08:00
proton_c refactor: Remove unimportant labels 2023-12-04 20:06:54 -06:00
puchi_ble feat(boards): Make west flash work with new UF2 runner. 2024-02-09 14:32:46 -08:00
s40nc fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
seeeduino_xiao feat(boards): Add Seeed(uino) XIAO interconnect 2022-04-03 00:10:29 -04:00
seeeduino_xiao_ble feat(boards): Add Seeed(uino) XIAO interconnect 2022-04-03 00:10:29 -04:00
seeeduino_xiao_rp2040 fix(boards): Base config/overlay for rp2040 boards 2023-04-05 22:55:38 -07:00
sparkfun_pro_micro_rp2040 fix(boards): Base config/overlay for rp2040 boards 2023-04-05 22:55:38 -07:00