summaryrefslogtreecommitdiff
path: root/keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h
diff options
context:
space:
mode:
authorZach White <skullydazed@gmail.com>2021-07-14 10:30:28 -0700
committerZach White <skullydazed@gmail.com>2021-07-14 10:30:28 -0700
commit44d322623eb875f6eb2e0a317c76af2d47f7a9dc (patch)
treeab722bcc4cea4e4ed16f0a5dce0602fe1f2c63e5 /keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h
parent52cfc9259b58a3a11a244fbe35c49c7dd1a9cae0 (diff)
parentffdfe3798bc7bd374991abe8f10494f2e73aedd5 (diff)
Merge remote-tracking branch 'origin/master' into develop
Resolved Conflicts: keyboards/checkerboards/nop60/info.json
Diffstat (limited to 'keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h')
-rw-r--r--keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h b/keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h
new file mode 100644
index 0000000000..c7d08309d0
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h
@@ -0,0 +1,10 @@
+#pragma once
+// clang-format off
+
+#if defined(__AVR__)
+# define readPort(port) PINx_ADDRESS(port)
+typedef uint8_t port_data_t;
+#else
+# define readPort(qmk_pin) palReadPort(PAL_PORT(qmk_pin))
+typedef uint16_t port_data_t;
+#endif