AL1 Unable to Compile on Configurator (#3339)

* use QMK_KEYBOARD_H

* init_kb and scan_kb need to be in matrix.c to make use of the matrix.h include

* Make the routines weak as suggested by Drashna
master
MechMerlin 2018-07-09 07:47:29 -07:00 committed by Drashna Jaelre
parent 56b5e9f23d
commit 5ef50256d8
3 changed files with 7 additions and 6 deletions

View File

@ -15,10 +15,12 @@
*/ */
#include "al1.h" #include "al1.h"
__attribute__ ((weak))
void matrix_init_kb(void) { void matrix_init_kb(void) {
matrix_init_user(); matrix_init_user();
} }
__attribute__ ((weak))
void matrix_scan_kb(void) { void matrix_scan_kb(void) {
matrix_scan_user(); matrix_scan_user();
} }

View File

@ -1,4 +1,4 @@
#include "al1.h" #include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_split_bs(\ [0] = LAYOUT_split_bs(\

View File

@ -28,7 +28,6 @@ inline uint8_t matrix_cols(void) {
return MATRIX_COLS; return MATRIX_COLS;
} }
void matrix_init(void) { void matrix_init(void) {
// initialize row and col // initialize row and col
unselect_cols(); unselect_cols();