summaryrefslogtreecommitdiff
path: root/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.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_fast/test_config_direct.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_fast/test_config_direct.h')
-rw-r--r--keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h
new file mode 100644
index 0000000000..aeea12950d
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h
@@ -0,0 +1,34 @@
+#if defined(__AVR__)
+/* -------------------- AVR (Pro Micro) ----------------------- */
+
+// old style
+#define DIRECT_PINS { { F4, NO_PIN, F5 }, { NO_PIN, F6, F7 }, { B1, B3, NO_PIN } }
+
+// new style
+// #define DIRECT_PINS
+#define MATRIX_IN_PORTS \
+ (Port_F, MCU_GPIO, F0), \
+ (Port_B, MCU_GPIO, B0)
+#define MATRIX_IN_PINS \
+ (0, Port_F, 4), (1, NO_PIN ), (2, Port_F, 5), \
+ (3, NO_PIN ), (4, Port_F, 6), (5, Port_F, 7), \
+ (6, Port_B, 1), (7, Port_B, 3), (8, NO_PIN )
+
+#else
+/* -------------------- ARM (PROTON-C) ----------------------- */
+
+// old style
+#define DIRECT_PINS { { A2, NO_PIN, A1 }, { NO_PIN, A0, B8 }, { B13, B14, NO_PIN } }
+
+// new style
+// #define DIRECT_PINS
+#define MATRIX_IN_PORTS \
+ (Port_A, MCU_GPIO, A0), \
+ (Port_B, MCU_GPIO, B0)
+#define MATRIX_IN_PINS \
+ (0, Port_A, 2), (1, NO_PIN ), (2, Port_A, 1), \
+ (3, NO_PIN ), (4, Port_A, 0), (5, Port_B, 8), \
+ (6, Port_B, 13), (7, Port_B, 14), (8, NO_PIN )
+
+#endif
+