瀏覽代碼

Al1 Configurator compile fix redux (#3357)

* move matrix routines to matrix.c

* add init user and scan user routines
MechMerlin 7 年之前
父節點
當前提交
0fcaa3b5e1
共有 2 個文件被更改,包括 18 次插入10 次删除
  1. 0 10
      keyboards/al1/al1.c
  2. 18 0
      keyboards/al1/matrix.c

+ 0 - 10
keyboards/al1/al1.c

@@ -15,16 +15,6 @@
  */
 #include "al1.h"
 
-__attribute__ ((weak))
-void matrix_init_kb(void) {
-	matrix_init_user();
-}
-
-__attribute__ ((weak))
-void matrix_scan_kb(void) {
-    matrix_scan_user();
-}
-
 bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
 	return process_record_user(keycode, record);
 }

+ 18 - 0
keyboards/al1/matrix.c

@@ -28,6 +28,24 @@ inline uint8_t matrix_cols(void) {
   return MATRIX_COLS;
 }
 
+__attribute__ ((weak))
+void matrix_init_kb(void) {
+	matrix_init_user();
+}
+
+__attribute__ ((weak))
+void matrix_scan_kb(void) {
+    matrix_scan_user();
+}
+
+__attribute__ ((weak))
+void matrix_init_user(void) {
+}
+
+__attribute__ ((weak))
+void matrix_scan_user(void) {
+}
+
 void matrix_init(void) {
   // initialize row and col
     unselect_cols();