summaryrefslogtreecommitdiff
path: root/quantum/template/avr
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/avr
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/avr')
-rw-r--r--quantum/template/avr/config.h10
-rw-r--r--quantum/template/avr/keyboard.c (renamed from quantum/template/avr/template.c)0
2 files changed, 4 insertions, 6 deletions
diff --git a/quantum/template/avr/config.h b/quantum/template/avr/config.h
index 713d6be3a5..304a54ae59 100644
--- a/quantum/template/avr/config.h
+++ b/quantum/template/avr/config.h
@@ -23,8 +23,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x0000
#define DEVICE_VER 0x0001
-#define MANUFACTURER % YOUR_NAME %
-#define PRODUCT % KEYBOARD %
+#define MANUFACTURER %YOUR_NAME%
+#define PRODUCT %KEYBOARD%
#define DESCRIPTION A custom keyboard
/* key matrix size */
@@ -41,10 +41,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
-#define MATRIX_ROW_PINS \
- { D0, D5 }
-#define MATRIX_COL_PINS \
- { F1, F0, B0 }
+#define MATRIX_ROW_PINS { D0, D5 }
+#define MATRIX_COL_PINS { F1, F0, B0 }
#define UNUSED_PINS
/* COL2ROW, ROW2COL*/
diff --git a/quantum/template/avr/template.c b/quantum/template/avr/keyboard.c
index e852a42c40..e852a42c40 100644
--- a/quantum/template/avr/template.c
+++ b/quantum/template/avr/keyboard.c