summaryrefslogtreecommitdiff
path: root/quantum/template/ps2avrgb
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-10-10 21:48:37 +1100
committerJoel Challis <git@zvecr.com>2019-10-10 11:48:37 +0100
commited1bf3afa25d7e7674df7e8618dfaf243de3058b (patch)
treecfe0e4331b8f00d09706dd0aaa8fef2cac3f61d7 /quantum/template/ps2avrgb
parent528ddb79871b76d026c4b2ca8b1debf9feb1e751 (diff)
Prevent clang-format messing up placeholder tokens within keyboard templates (#6790)
* Use .template file extension for keyboard template files * Filter out .template files completely before passing to clang-format * Undo file extension stuff; just ignore quantum/template dir
Diffstat (limited to 'quantum/template/ps2avrgb')
-rw-r--r--quantum/template/ps2avrgb/config.h11
-rw-r--r--quantum/template/ps2avrgb/keyboard.c (renamed from quantum/template/ps2avrgb/template.c)0
2 files changed, 4 insertions, 7 deletions
diff --git a/quantum/template/ps2avrgb/config.h b/quantum/template/ps2avrgb/config.h
index a780a10afc..f6d7c25e04 100644
--- a/quantum/template/ps2avrgb/config.h
+++ b/quantum/template/ps2avrgb/config.h
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define PRODUCT_ID 0x422D
#define DEVICE_VER 0x0001
#define MANUFACTURER You
-#define PRODUCT % KEYBOARD %
+#define PRODUCT %KEYBOARD%
#define DESCRIPTION A custom keyboard
#define RGBLED_NUM 16
@@ -31,13 +31,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROWS 8
#define MATRIX_COLS 11
-#define MATRIX_ROW_PINS \
- { B0, B1, B2, B3, B4, B5, B6, B7 }
-#define MATRIX_COL_PINS \
- { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5 }
+#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6, B7 }
+#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5 }
// #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, C1, C0, D7 }
-#define UNUSED_PINS \
- {}
+#define UNUSED_PINS {}
#define DIODE_DIRECTION COL2ROW
#define DEBOUNCE 5
diff --git a/quantum/template/ps2avrgb/template.c b/quantum/template/ps2avrgb/keyboard.c
index efc8517485..efc8517485 100644
--- a/quantum/template/ps2avrgb/template.c
+++ b/quantum/template/ps2avrgb/keyboard.c