From 0523b4fd8e76f5914ac9266e1b19191e3df5d4a5 Mon Sep 17 00:00:00 2001 From: tmk Date: Sat, 24 Sep 2016 11:30:57 +0900 Subject: [PATCH] infinity: Add Makefiles and fix for INFINITY_LED --- keyboard/infinity/Makefile.led | 2 ++ keyboard/infinity/Makefile.prototype | 2 ++ keyboard/infinity/matrix.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 keyboard/infinity/Makefile.led create mode 100644 keyboard/infinity/Makefile.prototype diff --git a/keyboard/infinity/Makefile.led b/keyboard/infinity/Makefile.led new file mode 100644 index 00000000..12571b88 --- /dev/null +++ b/keyboard/infinity/Makefile.led @@ -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 index 00000000..99853243 --- /dev/null +++ b/keyboard/infinity/Makefile.prototype @@ -0,0 +1,2 @@ +OPT_DEFS += -DINFINITY_PROTOTYPE +include Makefile diff --git a/keyboard/infinity/matrix.c b/keyboard/infinity/matrix.c index 36c95815..60cadc4e 100644 --- a/keyboard/infinity/matrix.c +++ b/keyboard/infinity/matrix.c @@ -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);