aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
AgeCommit message (Collapse)Author
2024-03-29fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP.Peter Johanson
* ZMK_SLEEP also enables PM_DEVICE, so be sure to mark kscan nodes as wakeup sources so they can wake keyboards from sleep.
2024-03-27fix(shields): Fix for direct use with ZMK Uno split.Peter Johanson
2024-03-27fix(pm): Fixes for dedicated on/off on peripherals.Peter Johanson
* Add new flag to differentiate soft off on peripherals that is invoked by split GATT svc and dedicated additional ones tied to GPIO pin.
2024-03-27fix(pm): Use Zephyr created device slots.Peter Johanson
* Avoid overwriting random memory by using iterable section created by Zephyr PM.
2024-03-27refactor: Use kscan directly to wake when we can.Peter Johanson
* When adding a dedicated GPIO pin for soft off/on, use the direct kscan as the waker, instead of adding an additional node.
2024-03-27feat(behaviors): More logging in soft off.Peter Johanson
2024-03-27fix: Fixes for building soft off without deep sleep.Peter Johanson
2024-03-27fix: Adjustments for Zephyr 3.5.Peter Johanson
2024-03-27refactor: Fixes for review feedback.Peter Johanson
2024-03-27fix: Cleanups of sideband and direct kscan from review.Peter Johanson
* Add dedicated init priority for the sideband kscan. * Refactor sideband code for clarity. * Tweaks to direct kscan for clarity. * Make sideband behavior row optional for brevity. * Allow overriding ZMK Uno sideband behaviors.
2024-03-27fix(pm): Fix deep sleep with sideband behaviors.Peter Johanson
* Properly implement the PM hook needed for sideband behavior kscan device to have wakeup source enabled on it.
2024-03-27fix: Sleep after clearing endpoints to wait for send.Peter Johanson
* Add a small sleep to allow other threads to send data for the endpoint clearing before sleep.
2024-03-27refactor(boards): Move ZMK Uno 1P3T slider to sidebandPeter Johanson
* Invoke output selection from the slider on the ZMK Uno via sideband behavior setup, to simplify keymap.
2024-03-27refactor: Add kscan sideband behavior driverPeter Johanson
* Instead of gpio key behavior trigger, add new kscan driver that decorates/wraps a given kscan driver and will invoke basic system behavior assigned to a given row + column, without the need for keymap mapping in the matrix transform, bypassing keymaps entirely.
2024-03-27feat(kscan): Direct kscan driver can use gpio-keys.Peter Johanson
* Allow specifying direct kscan driver pins using gpio-key list as an alternative.
2024-03-27refactor(pm): Remove scanned behavior trigger.Pete Johanson
* Remove the painful scanned behavior trigger for now, future enhancement will restore this high level functionality using kscan directly.
2024-03-27chore: Various soft-off review fixesPete Johanson
* Code style to avoid goto. * Enable pm.c compilation via dedicated Kconfig flag. * Comment wakeup trigger PM behavior.
2024-03-27refactor: Fixes for soft-off based on review.Peter Johanson
* Better naming for gpio-key behavior triggers. * Tweaks to scanned behavior trigger to avoid bad semaphore use, and reduce chance of issues with slowly scanned matrixes. * Various code cleanups of style issues.
2024-03-27fix(bt): Fix BT tests after soft off work.Peter Johanson
* Move to explicit enable of `ZMK_PM_SOFT_OFF` to turn on the feature and use the behaviors, which matches how other features work, and helps with split and testing schemes.
2024-03-27feat(pm): Clear HID data before soft off.Peter Johanson
* Make sure the connected host has no held HID usages before we sleep.
2024-03-27refactor: Promote new endpoints APIPeter Johanson
* Add ability for external callers to clear the current endpoint.
2024-03-27feat(shields): Add soft-off to the nrf52840dk ZMK UnoPeter Johanson
* Use Button 1 for soft off on the nrf52840 when using the ZMK Uno shield.
2024-03-27feat(behaviors): Add soft off behavior.Peter Johanson
* New soft-off behavior that can be used to force the device into soft-off state with only certain configured wakeup devices.
2024-03-27feat(kscan): Add PM support to GPIO kscan drivers.Peter Johanson
* Add PM device hook to the kscan direct & matrix drivers.
2024-03-27feat: Add soft on/off support.Peter Johanson
Initial work on a soft on/off support for ZMK. Triggering soft off puts the device into deep sleep with only a specific GPIO pin configured to wake the device, avoiding waking from other key presses in the matrix like the normal deep sleep. Co-authored-by: Cem Aksoylar <[email protected]>
2024-03-27fix(build): Modify function return typeThomas Huber
Change return type of `sticky_key_timeout` function to `void` given it does not return any value to remove compiler warnings.
2024-03-24feat: Add ability to fetch battery voltage.Peter Johanson
* To be able to use the Zephyr `voltage-divider` driver, add a mode for fetching raw voltage from the sensor and do state of charge calculation outside of the driver.
2024-03-20fix: Add settings reset on start init priority.Peter Johanson
* Add a dedicated settings reset on start init priority and default it to lower priority (high number) than default FLASH_INIT_PRIORITY to be sure flash is initialized before we open the area.
2024-03-18chore: fix whitespaceTheo Lemay
2024-03-18chore: remove label in testTheo Lemay
2024-03-18refactor: extract duplicate logicTheo Lemay
2024-03-18feat(behaviors): lazy sticky keysTheo Lemay
2024-03-18fix(keymap): Replace some keypad keycodesPablo
* Change KP_MULTIPLY to ASTRK in defaults keymap
2024-03-18refactor: replace quick_tap_ms with quick-tap-mshonorless
* The underscore form of this property is deprecated.
2024-03-18refactor: replace tapping_term_ms with tapping-term-mshonorless
* The underscore form of this property is deprecated.
2024-03-18fix(hid): Fix typo in HID usage aliasHans Kruse
2024-03-18feat(build): Explicit missing keymap node errorReFil
* Explicit error if zmk,keymap not set * Document keymap error --------- Co-authored-by: Cem Aksoylar <[email protected]>
2024-03-18fix: Update settings reset for Zephyr 3.5Joel Spadin
2024-03-18feat(shields): Make settings_reset shield reset all settingsJoel Spadin
Added a new CONFIG_ZMK_SETTINGS_RESET_ON_START option which enables init code to call zmk_settings_erase(), and changed the settings_reset shield to use it instead of CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START, so it now resets all settings instead of just clearing BLE bonds. CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START is left in place for now in case someone still needs it. It may be replaced in the future once we find a better way to repair a broken split connection.
2024-03-18feat: Add function to erase all settingsJoel Spadin
Added a zmk_settings_erase() function to clear all saved settings. This does not go through Zephyr's settings subsystem, but instead directly clears the data from the setting storage backend, so a reboot is needed for it to take effect.
2024-03-08fix(build): Properly board revision keymaps.Peter Johanson
* Handle board keymap location for boards with Zephyr board revisions included. * Includes bare non-revision file and a revision specific keymap in case newer revision changes the layout/key positions.
2024-02-20fix: inline initialise Theo Lemay
2024-02-20chore: remove label in testTheo Lemay
2024-02-20feat(behaviors): hold while undecidedTheo Lemay
2024-02-19refactor: address transport switch enumeration warningXudong Zheng
When building without USB or Bluetooth, the compiler emits a warning due to ZMK_TRANSPORT_USB or ZMK_TRANSPORT_BLE not being handled.
2024-02-19feat(boards): add encoder support to planckSeth Milliken
2024-02-19refactor: remove redundant Kconfig defaultshonorless
bool symbols implicitly default to n.
2024-02-19fix(boards): Add ext power init delay for nrfMicroton-im
* Address issues with OLED init occurring before display is powered.
2024-02-19fix(display): Proper initial display of battery statuszhiayang
* fix initial display of battery status on displays, and also fix a null deref
2024-02-17fix(boards): Tweaks for Ferris rev0.2 for Zephyr.Peter Johanson
* Enable missing clock and set up USB pinctrl.