]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
AL1 Unable to Compile on Configurator (#3339)
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Mon, 9 Jul 2018 14:47:29 +0000 (07:47 -0700)
committerDrashna Jaelre <drashna@live.com>
Mon, 9 Jul 2018 14:47:29 +0000 (07:47 -0700)
* 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

keyboards/al1/al1.c
keyboards/al1/keymaps/splitbs/keymap.c
keyboards/al1/matrix.c

index ae24c981f2b530a60d835594427d5d8d5805de0b..62d3a6363138de83f45a3704213bb41d8eab5f09 100644 (file)
  */
 #include "al1.h"
 
+__attribute__ ((weak))
 void matrix_init_kb(void) {
        matrix_init_user();
 }
 
+__attribute__ ((weak))
 void matrix_scan_kb(void) {
     matrix_scan_user();
 }
@@ -45,4 +47,4 @@ void led_set_kb(uint8_t usb_led) {
     else
         PORTD |=  (1<<1);
        led_set_user(usb_led);
-}
\ No newline at end of file
+}
index da1ba3b8e24c175eff9333722066eafd8e06d23c..1d752aef57424591e189a3234bdfb43076f422ed 100644 (file)
@@ -1,4 +1,4 @@
-#include "al1.h"
+#include QMK_KEYBOARD_H
 
 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
        [0] = LAYOUT_split_bs(\
@@ -49,4 +49,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 
 void led_set_user(uint8_t usb_led) {
 
-}
\ No newline at end of file
+}
index f7ed7fbb05c39ece020ddb469c29a50a8ebebdb1..9d51f64deee6a9dd16e1e5893884afa8d6c3cd76 100644 (file)
@@ -28,7 +28,6 @@ inline uint8_t matrix_cols(void) {
   return MATRIX_COLS;
 }
 
-
 void matrix_init(void) {
   // initialize row and col
     unselect_cols();
@@ -104,7 +103,7 @@ uint8_t matrix_key_count(void) {
 
 /* Row pin configuration
  *
- * row: 0    1    2    3    4    5 
+ * row: 0    1    2    3    4    5
  * pin: C7   B1   B2   C6   B4   B5
  *
  */
@@ -181,4 +180,4 @@ static void select_col(uint8_t col) {
   else {
     PORTD &= ~(1<<PD7);
   }
-}
\ No newline at end of file
+}