mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
refactor: Fixes for soft-off based on review.
* 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.
This commit is contained in:
committed by
Pete Johanson
parent
96968514e3
commit
fceb0351a5
@@ -8,7 +8,6 @@
|
||||
behaviors {
|
||||
/omit-if-no-ref/ soft_off: soft_off {
|
||||
compatible = "zmk,behavior-soft-off";
|
||||
label = "SOFTOFF";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
description: |
|
||||
Driver for a dedicated key for invoking a connected behavior.
|
||||
|
||||
compatible: "zmk,behavior-key"
|
||||
compatible: "zmk,gpio-key-behavior-trigger"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
@@ -16,7 +16,7 @@ properties:
|
||||
bindings:
|
||||
type: phandle
|
||||
required: true
|
||||
description: The GPIO key that triggers wake via interrupt
|
||||
description: The behavior to invoke when the GPIO key is pressed
|
||||
debounce-press-ms:
|
||||
type: int
|
||||
default: 5
|
||||
@@ -4,7 +4,7 @@
|
||||
description: |
|
||||
Driver for a dedicated key for waking the device from sleep
|
||||
|
||||
compatible: "zmk,wakeup-trigger-key"
|
||||
compatible: "zmk,gpio-key-wakeup-trigger"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
description: |
|
||||
Driver for a dedicated key triggered by matrix scanning for invoking a connected behavior.
|
||||
|
||||
compatible: "zmk,behavior-key-scanned"
|
||||
compatible: "zmk,gpio-scanned-key-behavior-trigger"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
@@ -16,7 +16,7 @@ properties:
|
||||
bindings:
|
||||
type: phandle
|
||||
required: true
|
||||
description: The GPIO key that triggers wake via interrupt
|
||||
description: The behavior to invoke when the GPIO key is pressed
|
||||
debounce-press-ms:
|
||||
type: int
|
||||
default: 5
|
||||
@@ -2,7 +2,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: |
|
||||
Description of all possible wakeup-sources from a forces
|
||||
Description of all possible wakeup-sources from a forced
|
||||
soft-off state.
|
||||
|
||||
compatible: "zmk,soft-off-wakeup-sources"
|
||||
@@ -11,4 +11,4 @@ properties:
|
||||
wakeup-sources:
|
||||
type: phandles
|
||||
required: true
|
||||
description: List of wakeup-sources that should be enabled to wake the system from forces soft-off state.
|
||||
description: List of wakeup-sources that should be enabled to wake the system from forced soft-off state.
|
||||
|
||||
Reference in New Issue
Block a user