]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] Fix v60_type_r compile failures (#7250)
authorJoel Challis <git@zvecr.com>
Sun, 3 Nov 2019 22:42:21 +0000 (22:42 +0000)
committerDrashna Jaelre <drashna@live.com>
Sun, 3 Nov 2019 22:42:21 +0000 (14:42 -0800)
keyboards/v60_type_r/config.h
keyboards/v60_type_r/rules.mk
keyboards/v60_type_r/v60_type_r.c
keyboards/v60_type_r/v60_type_r.h

index 51ca6def94a5e0e71689456d1565b329138ad37a..d1a788a8582e83a0aa67ae8c3263647ed257b36a 100644 (file)
@@ -53,14 +53,14 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define BACKLIGHT_LEVELS 3
 #define BACKLIGHT_ON_STATE 0
 
-#define RGBLIGHT_CUSTOM_DRIVER
-#define RGBLIGHT_ANIMATIONS
+//#define RGB_DI_PIN 0
 #define RGBLED_NUM 1
+#define RGBLIGHT_ANIMATIONS
+#define RGB_STEP 16
+
 #define RGB_RED_PIN PF6
 #define RGB_GREEN_PIN PF5
 #define RGB_BLUE_PIN PF4
-#define RGB_DI_PIN 0
-#define RGB_STEP 16
 
 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
 #define DEBOUNCE 5
index 7533dff3db4811af929445250c9f0b5a2bf21a81..37acd03d1a520efec0667367c72ec1aa779cb4cb 100644 (file)
@@ -17,18 +17,21 @@ BOOTLOADER = atmel-dfu
 BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration(+1000)
 MOUSEKEY_ENABLE = yes       # Mouse keys(+4700)
 EXTRAKEY_ENABLE = yes       # Audio control and System control(+450)
-CONSOLE_ENABLE = yes        # Console for debug(+400)
+CONSOLE_ENABLE = no         # Console for debug(+400)
 COMMAND_ENABLE = yes        # Commands for debug and configuration
 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
 SLEEP_LED_ENABLE = no       # Breathing sleep LED during USB suspend
 # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
 NKRO_ENABLE = no            # USB Nkey Rollover
-BACKLIGHT_ENABLE = yes       # Enable keyboard backlight functionality on B7 by default
-RGBLIGHT_ENABLE = yes        # Enable the RGB Underglow
+BACKLIGHT_ENABLE = yes      # Enable keyboard backlight functionality on B7 by default
+RGBLIGHT_ENABLE = yes       # Enable the RGB Underglow
+RGBLIGHT_CUSTOM_DRIVER = yes
 MIDI_ENABLE = no            # MIDI support (+2400 to 4200, depending on config)
 UNICODE_ENABLE = no         # Unicode
 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
 AUDIO_ENABLE = no           # Audio output on port C6
 FAUXCLICKY_ENABLE = no      # Use buzzer to emulate clicky switches
 
+LINK_TIME_OPTIMIZATION_ENABLE = yes
+
 LAYOUTS = 60_ansi 60_iso
index 5caa149b45d1e6b3c92764a9ed9a894262417d90..871d9915d304162bad2c142a9262728823dac6ee 100644 (file)
 #include "quantum.h"
 
 // if we've got an RGB underglow!
-#ifdef V60_POLESTAR
-
-#include "rgblight.h"
-
-#include <avr/pgmspace.h>
-
-#include "action_layer.h"
+#ifdef RGBLIGHT_ENABLE
 
 #define SOFTPWM_LED_TIMER_TOP F_CPU/(256*64)
 
@@ -191,4 +185,4 @@ ISR(TIMER3_COMPA_vect)
        softpwm_buff[2] = led[0].b;
        }
 }
-#endif // V60_POLESTAR
+#endif // RGBLIGHT_ENABLE
index c33a2840b095af99ab610af6dd1e696f423ce666..78b6561ba5ef334c327b3c7dba6421d0de941de6 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "quantum.h"
 
-#ifdef V60_POLESTAR
+#ifdef RGBLIGHT_ENABLE
 
 #include "rgblight.h"