infinity: Add Makefiles and fix for INFINITY_LED
authortmk <hasu@tmk-kbd.com>
Sat, 24 Sep 2016 02:30:57 +0000 (11:30 +0900)
committertmk <hasu@tmk-kbd.com>
Sat, 24 Sep 2016 02:30:57 +0000 (11:30 +0900)
keyboard/infinity/Makefile.led [new file with mode: 0644]
keyboard/infinity/Makefile.prototype [new file with mode: 0644]
keyboard/infinity/matrix.c

diff --git a/keyboard/infinity/Makefile.led b/keyboard/infinity/Makefile.led
new file mode 100644 (file)
index 0000000..12571b8
--- /dev/null
@@ -0,0 +1,2 @@
+OPT_DEFS += -DINFINITY_LED
+include Makefile
diff --git a/keyboard/infinity/Makefile.prototype b/keyboard/infinity/Makefile.prototype
new file mode 100644 (file)
index 0000000..9985324
--- /dev/null
@@ -0,0 +1,2 @@
+OPT_DEFS += -DINFINITY_PROTOTYPE
+include Makefile
index 36c95815f66ff077baa25d5634acd83d42674116..60cadc4eb0c8423ade73a939f2834420df908afa 100644 (file)
@@ -39,7 +39,7 @@ void matrix_init(void)
     gpio_init_in_ex(&col[5], PTD6, PullDown);
     gpio_init_in_ex(&col[6], PTD7, PullDown);
 
-#ifdef INFINITY_LED
+#ifndef INFINITY_LED
     /* Row(strobe) */
     gpio_init_out_ex(&row[0], PTB0, 0);
     gpio_init_out_ex(&row[1], PTB1, 0);
Imprint / Impressum