zmk/app/boards/shields
Joel Spadin 6e7e0de2b6
feat(endpoints): add "no endpoint" value (#3140)
feat(endpoints): add "no endpoint" value

This adds ZMK_TRANSPORT_NONE, which can be set as the preferred
endpoint transport if you wish to prevent the keyboard from sending any
output. More usefully, it also is used to indicate that the preferred
endpoint is not available and it could not fall back to an available
one. To go along with this, many endpoint functions are renamed for
consistency, and a few new functions are added:

- zmk_endpoint_get_preferred_transport() returns the value that was set
  with zmk_endpoint_set_preferred_transport().

- zmk_endpoint_get_preferred() returns the endpoint that will be used
  if it is available. This endpoint always has the same transport as
  zmk_endpoint_get_preferred_transport().

- zmk_endpoint_is_connected() is a shortcut to check if the keyboard is
  actually connected to an endpoint.

This change is based on #2572 but without the option to disable endpoint
fallback. It does refactor code to allow adding that feature later.

fix(endpoints): Add endpoint setting upgrade

Adding ZMK_TRANSPORT_NONE at the start of enum zmk_transport results in
the preferred transport setting no longer representing the same values
when it is saved with earlier firmware and loaded with newer firmware.

To fix this, the "endpoints/preferred" setting is now deprecated and
replaced by "endpoints/preferred2". If the old setting is present, it
is interpreted as the old enum type, upgraded to the new type, and saved
immediately to the new setting. The old setting is then deleted.

To avoid this happening again in the future, enum zmk_transport now has
explicit values assigned to identifier, and a comment is also added to
explain that existing values must not be changed.

fix: Set default transport according to enabled transports

The default value for preferred_transport is now set to USB only if
CONFIG_ZMK_USB is enabled. If not, it falls back to BLE if
CONFIG_ZMK_BLE is enabled, then to "none" if nothing is enabled.
2026-02-12 01:51:42 -05:00
..
a_dux chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
bat43 chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
bfo9000 chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
boardsource3x4 feat(shields): Add Studio support to boardsource3x4 (#3154) 2025-12-28 08:32:42 +00:00
boardsource5x12 chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
chalice feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
clog chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
clueboard_california chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
contra chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
corne feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
cradio chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
crbn chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
eek chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
elephant42 feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
ergodash chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
eternal_keypad feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
fourier chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
helix feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
hummingbird chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
iris chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
jian
jiran chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
jorne feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
knob_goblin feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
kyria feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
leeloo feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
leeloo_micro feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
lily58 feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
lotus58 chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
m60 chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
microdox feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
minivan_studio_tester
murphpad feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
naked60 chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
nibble feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
nice_view feat(endpoints): add "no endpoint" value (#3140) 2026-02-12 01:51:42 -05:00
nice_view_adapter feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
osprette chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
pancake chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
posix_pro_micro
posix_seeed_xiao
qaz chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
quefrency chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
redox feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
reviung5 feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
reviung34 feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
reviung41 feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
reviung53 feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
romac chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
romac_plus feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
settings_reset
snap feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
sofle feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
splitkb_aurora_corne feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
splitkb_aurora_helix feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
splitkb_aurora_lily58 feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
splitkb_aurora_sofle feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
splitkb_aurora_sweep feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
splitreus62 chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
tester_pro_micro chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
tester_rpi_pico chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
tester_xiao chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
tg4x feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
tidbit feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
two_percent_milk feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
waterfowl chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00
zmk_uno feat!: Move to zephyr v4.1 (#3060) 2025-12-09 19:43:22 -05:00
zodiark chore(shields): Add missing display-name for existing keymaps (#3048) 2025-09-10 15:48:33 -07:00