summaryrefslogtreecommitdiff
path: root/app/include
diff options
context:
space:
mode:
authorMega Mind <68985133+megamind4089@users.noreply.github.com>2020-10-10 09:29:07 +0800
committerMega Mind <68985133+megamind4089@users.noreply.github.com>2020-10-12 23:42:01 +0800
commitb5e1c8a7addc186d0bd542082482157ffb2d1f5a (patch)
treee750f040dfe2e2cb565155cd9fa31affad6312b3 /app/include
parentd0c6310434e168152c998a3a17230dda7ecedd93 (diff)
New behavior for ext power control
Diffstat (limited to 'app/include')
-rw-r--r--app/include/dt-bindings/zmk/ext_power.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/include/dt-bindings/zmk/ext_power.h b/app/include/dt-bindings/zmk/ext_power.h
new file mode 100644
index 0000000..a72b657
--- /dev/null
+++ b/app/include/dt-bindings/zmk/ext_power.h
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2020 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#define EXT_POWER_OFF_CMD 0
+#define EXT_POWER_ON_CMD 1
+
+/*
+ * Note: Some future commands might include additional parameters, so we
+ * defines these aliases up front.
+ */
+
+#define EP_ON EXT_POWER_ON_CMD 0
+#define EP_OFF EXT_POWER_OFF_CMD 0