keyboard stuff
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Relocate backlight drivers (#21444)

authored by

Ryan and committed by
GitHub
cb233171 636093f7

+17 -164
+6 -6
builddefs/common_features.mk
··· 565 565 endif 566 566 567 567 COMMON_VPATH += $(QUANTUM_DIR)/backlight 568 + COMMON_VPATH += $(DRIVER_PATH)/backlight 568 569 SRC += $(QUANTUM_DIR)/backlight/backlight.c 569 570 SRC += $(QUANTUM_DIR)/process_keycode/process_backlight.c 570 571 OPT_DEFS += -DBACKLIGHT_ENABLE 571 572 572 - ifeq ($(strip $(BACKLIGHT_DRIVER)), custom) 573 - OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER 574 - else 573 + ifneq ($(strip $(BACKLIGHT_DRIVER)), custom) 575 574 SRC += $(QUANTUM_DIR)/backlight/backlight_driver_common.c 576 - ifeq ($(strip $(BACKLIGHT_DRIVER)), pwm) 577 - SRC += $(QUANTUM_DIR)/backlight/backlight_$(PLATFORM_KEY).c 575 + 576 + ifeq ($(strip $(BACKLIGHT_DRIVER)), software) 577 + SRC += $(DRIVER_PATH)/backlight/backlight_software.c 578 578 else 579 - SRC += $(QUANTUM_DIR)/backlight/backlight_$(strip $(BACKLIGHT_DRIVER)).c 579 + SRC += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/backlight_$(strip $(BACKLIGHT_DRIVER)).c 580 580 endif 581 581 endif 582 582 endif
-1
keyboards/4pplet/eagle_viper_rep/rev_a/config.h
··· 18 18 19 19 #define BACKLIGHT_PWM_DRIVER PWMD2 20 20 #define BACKLIGHT_PWM_CHANNEL 4 21 - #define BACKLIGHT_PAL_MODE 2 22 21 23 22 /* Underglow */ 24 23 #define WS2812_SPI SPID1
+1 -1
keyboards/acheron/athena/alpha/alpha.c
··· 23 23 24 24 void keyboard_post_init_kb(void){ 25 25 // Defining the backlight pin (A6) as an floating (no pullup or pulldown resistor) opendrain output pin 26 - palSetLineMode(BACKLIGHT_PIN, PAL_MODE_ALTERNATE(BACKLIGHT_PAL_MODE) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_OSPEED_HIGHEST | PAL_STM32_PUPDR_FLOATING); 26 + palSetLineMode(BACKLIGHT_PIN, PAL_MODE_ALTERNATE(2) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_OSPEED_HIGHEST | PAL_STM32_PUPDR_FLOATING); 27 27 } 28 28 29 29 void led_init_ports(void) {
-1
keyboards/acheron/athena/alpha/config.h
··· 22 22 23 23 #define BACKLIGHT_PWM_DRIVER PWMD3 24 24 #define BACKLIGHT_PWM_CHANNEL 1 25 - #define BACKLIGHT_PAL_MODE 2 26 25 27 26 #define RGBLIGHT_EFFECT_BREATHING 28 27 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
-2
keyboards/acheron/athena/beta/config.h
··· 21 21 #define LOCKING_RESYNC_ENABLE 22 22 23 23 #define BACKLIGHT_PWM_DRIVER PWMD3 24 - #define BACKLIGHT_PWM_CHANNEL 3 25 - #define BACKLIGHT_PAL_MODE 2 26 24 27 25 #define RGBLIGHT_EFFECT_BREATHING 28 26 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
-1
keyboards/acheron/shark/alpha/config.h
··· 18 18 #pragma once 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD3 21 - #define BACKLIGHT_PWM_CHANNEL 3 22 21 23 22 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ 24 23 #define LOCKING_SUPPORT_ENABLE
-1
keyboards/acheron/shark/beta/config.h
··· 22 22 23 23 #define BACKLIGHT_PWM_DRIVER PWMD3 24 24 #define BACKLIGHT_PWM_CHANNEL 1 25 - #define BACKLIGHT_PAL_MODE 2 26 25 27 26 #define RGBLIGHT_EFFECT_BREATHING 28 27 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
-2
keyboards/checkerboards/nop60/config.h
··· 17 17 18 18 #pragma once 19 19 20 - #define BACKLIGHT_PWM_DRIVER PWMD3 21 - 22 20 // ws2812 options 23 21 #define RGBLIGHT_EFFECT_BREATHING 24 22 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
-2
keyboards/ebastler/e80_1800/config.h
··· 16 16 17 17 #define BACKLIGHT_PWM_DRIVER PWMD1 18 18 #define BACKLIGHT_PWM_CHANNEL 2 19 - #define BACKLIGHT_PAL_MODE 2 20 - 21 19 22 20 #ifdef OLED_ENABLE 23 21
-1
keyboards/ebastler/isometria_75/rev1/config.h
··· 20 20 /* Backlight */ 21 21 #define BACKLIGHT_PWM_DRIVER PWMD1 22 22 #define BACKLIGHT_PWM_CHANNEL 2 23 - #define BACKLIGHT_PAL_MODE 2 24 23 #define BACKLIGHT_PWM_OUTPUT_FREQUENCY 1000 // Increases backlight PWM freq if compiled with an unmerged PR. Does no harm without it. 25 24 26 25 /* Underglow */
-1
keyboards/geonworks/frogmini/fms/config.h
··· 18 18 #pragma once 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD1 21 - #define BACKLIGHT_PWM_CHANNEL 3 22 21 #define BACKLIGHT_PAL_MODE 1 23 22 24 23 #define I2C_DRIVER I2CD1
-1
keyboards/handwired/onekey/blackpill_f401/config.h
··· 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD5 21 21 #define BACKLIGHT_PWM_CHANNEL 1 22 - #define BACKLIGHT_PAL_MODE 2 23 22 24 23 #define ADC_PIN A0 25 24
-1
keyboards/handwired/onekey/blackpill_f401_tinyuf2/config.h
··· 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD5 21 21 #define BACKLIGHT_PWM_CHANNEL 1 22 - #define BACKLIGHT_PAL_MODE 2 23 22 24 23 #define ADC_PIN A0 25 24
-1
keyboards/handwired/onekey/blackpill_f411/config.h
··· 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD5 21 21 #define BACKLIGHT_PWM_CHANNEL 1 22 - #define BACKLIGHT_PAL_MODE 2 23 22 24 23 #define ADC_PIN A0 25 24
-1
keyboards/handwired/onekey/blackpill_f411_tinyuf2/config.h
··· 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD5 21 21 #define BACKLIGHT_PWM_CHANNEL 1 22 - #define BACKLIGHT_PAL_MODE 2 23 22 24 23 #define ADC_PIN A0 25 24
-5
keyboards/handwired/onekey/evb_wb32f3g71/config.h
··· 3 3 4 4 #pragma once 5 5 6 - 7 6 #define ADC_PIN A0 8 - 9 - #define BACKLIGHT_PWM_DRIVER PWMD4 10 - #define BACKLIGHT_PWM_CHANNEL 3 11 - #define BACKLIGHT_PAL_MODE 2 12 7 13 8 #define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) 14 9
-5
keyboards/handwired/onekey/evb_wb32fq95/config.h
··· 3 3 4 4 #pragma once 5 5 6 - 7 6 #define ADC_PIN A0 8 - 9 - #define BACKLIGHT_PWM_DRIVER PWMD4 10 - #define BACKLIGHT_PWM_CHANNEL 3 11 - #define BACKLIGHT_PAL_MODE 2 12 7 13 8 #define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4))) 14 9
-5
keyboards/handwired/onekey/nucleo_f446re/config.h
··· 2 2 // SPDX-License-Identifier: GPL-2.0-or-later 3 3 #pragma once 4 4 5 - 6 - #define BACKLIGHT_PWM_DRIVER PWMD4 7 - #define BACKLIGHT_PWM_CHANNEL 3 8 - #define BACKLIGHT_PAL_MODE 2 9 - 10 5 #define ADC_PIN A0 11 6 12 7 #define SOLENOID_PINS { B12, B13, B14, B15 }
-5
keyboards/handwired/onekey/nucleo_l432kc/config.h
··· 2 2 // SPDX-License-Identifier: GPL-2.0-or-later 3 3 #pragma once 4 4 5 - 6 - #define BACKLIGHT_PWM_DRIVER PWMD4 7 - #define BACKLIGHT_PWM_CHANNEL 3 8 - #define BACKLIGHT_PAL_MODE 2 9 - 10 5 #define ADC_PIN A0
-5
keyboards/handwired/onekey/proton_c/config.h
··· 16 16 17 17 #pragma once 18 18 19 - 20 - #define BACKLIGHT_PWM_DRIVER PWMD4 21 - #define BACKLIGHT_PWM_CHANNEL 3 22 - #define BACKLIGHT_PAL_MODE 2 23 - 24 19 #define ADC_PIN A0
-1
keyboards/handwired/onekey/rp2040/config.h
··· 13 13 #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP25 14 14 #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U 15 15 16 - #define BACKLIGHT_PWM_DRIVER PWMD4 17 16 #define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B 18 17 19 18 #define AUDIO_PIN GP16
-2
keyboards/handwired/onekey/stm32f0_disco/config.h
··· 16 16 17 17 #pragma once 18 18 19 - 20 19 #define BACKLIGHT_PWM_DRIVER PWMD3 21 - #define BACKLIGHT_PWM_CHANNEL 3 22 20 #define BACKLIGHT_PAL_MODE 0 23 21 24 22 #define ADC_PIN A0
-19
keyboards/handwired/pill60/config.h
··· 1 - /* Copyright 2020 Imam Rafii 2 - * 3 - * This program is free software: you can redistribute it and/or modify 4 - * it under the terms of the GNU General Public License as published by 5 - * the Free Software Foundation, either version 2 of the License, or 6 - * (at your option) any later version. 7 - * 8 - * This program is distributed in the hope that it will be useful, 9 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 - * GNU General Public License for more details. 12 - * 13 - * You should have received a copy of the GNU General Public License 14 - * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 - */ 16 - #pragma once 17 - 18 - #define BACKLIGHT_PWM_DRIVER PWMD5 19 - #define BACKLIGHT_PWM_CHANNEL 1
-1
keyboards/linworks/fave104/config.h
··· 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD2 21 21 #define BACKLIGHT_PWM_CHANNEL 2 22 - #define BACKLIGHT_PAL_MODE 2 23 22 #define BACKLIGHT_PWM_OUTPUT_FREQUENCY 1000 // Increases backlight PWM freq if compiled with an unmerged PR. Does no harm without it.
-1
keyboards/linworks/whale75/config.h
··· 15 15 #pragma once 16 16 17 17 #define BACKLIGHT_PWM_DRIVER PWMD1 18 - #define BACKLIGHT_PWM_CHANNEL 3 19 18 #define BACKLIGHT_PAL_MODE 6 20 19 #define BACKLIGHT_PWM_OUTPUT_FREQUENCY 1000 // Increases backlight PWM freq if compiled with an unmerged PR. Does no harm without it. 21 20
-1
keyboards/mechlovin/adelais/standard_led/arm/config.h
··· 18 18 #pragma once 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD3 21 - #define BACKLIGHT_PWM_CHANNEL 3 22 21 23 22 #define RGBLIGHT_EFFECT_BREATHING 24 23 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
-21
keyboards/mechlovin/hannah65/config.h
··· 1 - /* 2 - Copyright 2020 Team Mechlovin 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - 18 - #pragma once 19 - 20 - #define BACKLIGHT_PWM_DRIVER PWMD4 21 - #define BACKLIGHT_PWM_CHANNEL 3
-20
keyboards/mechlovin/hex4b/rev2/config.h
··· 1 - /* 2 - Copyright 2020 Team Mechlovin 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - 18 - #pragma once 19 - 20 - #define BACKLIGHT_PWM_DRIVER PWMD4
-1
keyboards/mechlovin/hex6c/config.h
··· 18 18 #pragma once 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD3 21 - #define BACKLIGHT_PWM_CHANNEL 3 22 21 23 22 #define WEAR_LEVELING_BACKING_SIZE 4096 24 23 #define WEAR_LEVELING_LOGICAL_SIZE 2048
-1
keyboards/mechlovin/infinity87/rev1/config.h
··· 17 17 #pragma once 18 18 19 19 #define BACKLIGHT_PWM_DRIVER PWMD3 20 - #define BACKLIGHT_PWM_CHANNEL 3
-1
keyboards/mechlovin/infinity88/config.h
··· 18 18 #pragma once 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD3 21 - #define BACKLIGHT_PWM_CHANNEL 3 22 21 23 22 /*== all animations enable ==*/#define RGBLIGHT_EFFECT_BREATHING 24 23 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
-21
keyboards/mechlovin/mechlovin9/rev1/config.h
··· 1 - /* 2 - Copyright 2021 Mechlovin' Studio 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - 18 - #pragma once 19 - 20 - #define BACKLIGHT_PWM_DRIVER PWMD3 21 - #define BACKLIGHT_PWM_CHANNEL 3
-3
keyboards/mechlovin/tmkl/config.h
··· 17 17 18 18 #pragma once 19 19 20 - #define BACKLIGHT_PWM_DRIVER PWMD3 21 - #define BACKLIGHT_PWM_CHANNEL 3 22 - 23 20 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ 24 21 #define LOCKING_SUPPORT_ENABLE
-1
keyboards/mode/m75s/config.h
··· 20 20 #define BACKLIGHT_DEFAULT_LEVEL 20 21 21 #define BACKLIGHT_PWM_DRIVER PWMD3 22 22 #define BACKLIGHT_PWM_CHANNEL 1 23 - #define BACKLIGHT_PAL_MODE 2 24 23 25 24 #define WEAR_LEVELING_LOGICAL_SIZE 2048 26 25 #define WEAR_LEVELING_BACKING_SIZE 4096
-1
keyboards/smithrune/iron165r2/f411/config.h
··· 19 19 20 20 #define BACKLIGHT_PWM_DRIVER PWMD3 21 21 #define BACKLIGHT_PWM_CHANNEL 1 22 - #define BACKLIGHT_PAL_MODE 2 23 22 24 23 #define RGBLIGHT_EFFECT_BREATHING 25 24 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
-1
quantum/backlight/backlight.c
··· 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 17 18 - #include "quantum.h" 19 18 #include "backlight.h" 20 19 #include "eeprom.h" 21 20 #include "eeconfig.h"
+3 -13
quantum/backlight/backlight_avr.c platforms/avr/drivers/backlight_pwm.c
··· 1 - #include "quantum.h" 2 1 #include "backlight.h" 3 2 #include "backlight_driver_common.h" 4 - #include "debug.h" 3 + #include "progmem.h" 4 + #include <avr/io.h> 5 + #include <avr/interrupt.h> 5 6 6 7 // Maximum duty cycle limit 7 8 #ifndef BACKLIGHT_LIMIT_VAL ··· 17 18 // 3. Full software PWM, driven by the matrix scan, if both timers are used by Audio. 18 19 19 20 #if (defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__) || defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__)) && (BACKLIGHT_PIN == B5 || BACKLIGHT_PIN == B6 || BACKLIGHT_PIN == B7) 20 - # define HARDWARE_PWM 21 21 # define ICRx ICR1 22 22 # define TCCRxA TCCR1A 23 23 # define TCCRxB TCCR1B ··· 39 39 # define OCRxx OCR1C 40 40 # endif 41 41 #elif (defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__) || defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__)) && (BACKLIGHT_PIN == C4 || BACKLIGHT_PIN == C5 || BACKLIGHT_PIN == C6) 42 - # define HARDWARE_PWM 43 42 # define ICRx ICR3 44 43 # define TCCRxA TCCR3A 45 44 # define TCCRxB TCCR3B ··· 69 68 # define OCRxx OCR3A 70 69 # endif 71 70 #elif (defined(__AVR_AT90USB162__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega32U2__)) && (BACKLIGHT_PIN == B7 || BACKLIGHT_PIN == C5 || BACKLIGHT_PIN == C6) 72 - # define HARDWARE_PWM 73 71 # define ICRx ICR1 74 72 # define TCCRxA TCCR1A 75 73 # define TCCRxB TCCR1B ··· 91 89 # define OCRxx OCR1A 92 90 # endif 93 91 #elif defined(__AVR_ATmega32A__) && (BACKLIGHT_PIN == D4 || BACKLIGHT_PIN == D5) 94 - # define HARDWARE_PWM 95 92 # define ICRx ICR1 96 93 # define TCCRxA TCCR1A 97 94 # define TCCRxB TCCR1B ··· 109 106 # define OCRxx OCR1A 110 107 # endif 111 108 #elif (defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328__)) && (BACKLIGHT_PIN == B1 || BACKLIGHT_PIN == B2) 112 - # define HARDWARE_PWM 113 109 # define ICRx ICR1 114 110 # define TCCRxA TCCR1A 115 111 # define TCCRxB TCCR1B ··· 129 125 #elif (AUDIO_PIN != B5) && (AUDIO_PIN != B6) && (AUDIO_PIN != B7) && (AUDIO_PIN_ALT != B5) && (AUDIO_PIN_ALT != B6) && (AUDIO_PIN_ALT != B7) 130 126 // Timer 1 is not in use by Audio feature, Backlight can use it 131 127 # pragma message "Using hardware timer 1 with software PWM" 132 - # define HARDWARE_PWM 133 128 # define BACKLIGHT_PWM_TIMER 134 129 # define ICRx ICR1 135 130 # define TCCRxA TCCR1A ··· 148 143 #elif (AUDIO_PIN != C4) && (AUDIO_PIN != C5) && (AUDIO_PIN != C6) 149 144 # pragma message "Using hardware timer 3 with software PWM" 150 145 // Timer 3 is not in use by Audio feature, Backlight can use it 151 - # define HARDWARE_PWM 152 146 # define BACKLIGHT_PWM_TIMER 153 147 # define ICRx ICR1 154 148 # define TCCRxA TCCR3A ··· 160 154 161 155 # define OCIExA OCIE3A 162 156 # define OCRxx OCR3A 163 - #elif defined(BACKLIGHT_CUSTOM_DRIVER) 164 - error("Please set 'BACKLIGHT_DRIVER = custom' within rules.mk") 165 - #else 166 - error("Please set 'BACKLIGHT_DRIVER = software' within rules.mk") 167 157 #endif 168 158 169 159 #ifndef BACKLIGHT_PWM_TIMER // pwm through software
+3 -3
quantum/backlight/backlight_chibios.c platforms/chibios/drivers/backlight_pwm.c
··· 1 - #include "quantum.h" 2 1 #include "backlight.h" 2 + #include "gpio.h" 3 + #include "wait.h" 3 4 #include <hal.h> 4 - #include "debug.h" 5 5 6 6 // Maximum duty cycle limit 7 7 #ifndef BACKLIGHT_LIMIT_VAL ··· 13 13 # define BACKLIGHT_PAL_MODE PAL_MODE_ALTERNATE_PUSHPULL 14 14 # else 15 15 // GPIOV2 && GPIOV3 16 - # define BACKLIGHT_PAL_MODE 5 16 + # define BACKLIGHT_PAL_MODE 2 17 17 # endif 18 18 #endif 19 19
+2 -1
quantum/backlight/backlight_driver_common.c
··· 1 - #include "quantum.h" 2 1 #include "backlight.h" 3 2 #include "backlight_driver_common.h" 3 + #include "gpio.h" 4 + #include "util.h" 4 5 5 6 #if !defined(BACKLIGHT_PIN) && !defined(BACKLIGHT_PINS) 6 7 # error "Backlight pin/pins not defined. Please configure."
+1 -1
quantum/backlight/backlight_software.c drivers/backlight/backlight_software.c
··· 1 - #include "quantum.h" 2 1 #include "backlight.h" 3 2 #include "backlight_driver_common.h" 3 + #include "util.h" 4 4 5 5 #ifdef BACKLIGHT_BREATHING 6 6 # error "Backlight breathing is not available for software PWM. Please disable."
+1 -2
quantum/backlight/backlight_timer.c platforms/chibios/drivers/backlight_timer.c
··· 1 - #include "quantum.h" 2 1 #include "backlight.h" 3 2 #include "backlight_driver_common.h" 4 - #include "debug.h" 3 + #include "wait.h" 5 4 6 5 #ifndef BACKLIGHT_GPT_DRIVER 7 6 # define BACKLIGHT_GPT_DRIVER GPTD15