Move tmk_core/common/backlight to quantum/backlight (#6710)
* Move tmk_core/common/backlight to quantum/backlight * Add guards to backlight inclusion * Add guards to backlight inclusion * Update backlight guards on clueboard/60 * Use full paths to avoid vpath issues
This commit is contained in:
committed by
Florian Didron
parent
9d1f6c699b
commit
d0ee924c9d
@@ -233,7 +233,13 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
|
|||||||
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
|
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
|
||||||
CIE1931_CURVE = yes
|
CIE1931_CURVE = yes
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes)
|
|
||||||
|
|
||||||
|
COMMON_VPATH += $(QUANTUM_DIR)/backlight
|
||||||
|
SRC += $(QUANTUM_DIR)/backlight/backlight.c
|
||||||
|
OPT_DEFS += -DBACKLIGHT_ENABLE
|
||||||
|
|
||||||
|
ifeq ($(strip $(BACKLIGHT_ENABLE)), custom)
|
||||||
OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
|
OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -26,9 +26,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#include "action.h"
|
#include "action.h"
|
||||||
#include "action_macro.h"
|
#include "action_macro.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "backlight.h"
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
# include "backlight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef MIDI_ENABLE
|
#ifdef MIDI_ENABLE
|
||||||
# include "process_midi.h"
|
# include "process_midi.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -28,8 +28,10 @@
|
|||||||
# define BREATHING_PERIOD 6
|
# define BREATHING_PERIOD 6
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "backlight.h"
|
#ifdef BACKLIGHT_ENABLE
|
||||||
extern backlight_config_t backlight_config;
|
# include "backlight.h"
|
||||||
|
extern backlight_config_t backlight_config;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef FAUXCLICKY_ENABLE
|
#ifdef FAUXCLICKY_ENABLE
|
||||||
# include "fauxclicky.h"
|
# include "fauxclicky.h"
|
||||||
|
|||||||
@@ -153,11 +153,6 @@ ifeq ($(strip $(NO_SUSPEND_POWER_DOWN)), yes)
|
|||||||
TMK_COMMON_DEFS += -DNO_SUSPEND_POWER_DOWN
|
TMK_COMMON_DEFS += -DNO_SUSPEND_POWER_DOWN
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
|
|
||||||
TMK_COMMON_SRC += $(COMMON_DIR)/backlight.c
|
|
||||||
TMK_COMMON_DEFS += -DBACKLIGHT_ENABLE
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
|
ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
|
||||||
TMK_COMMON_DEFS += -DBLUETOOTH_ENABLE
|
TMK_COMMON_DEFS += -DBLUETOOTH_ENABLE
|
||||||
TMK_COMMON_DEFS += -DNO_USB_STARTUP_CHECK
|
TMK_COMMON_DEFS += -DNO_USB_STARTUP_CHECK
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#include "mousekey.h"
|
#include "mousekey.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
#include "backlight.h"
|
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
#include "action_tapping.h"
|
#include "action_tapping.h"
|
||||||
#include "action_macro.h"
|
#include "action_macro.h"
|
||||||
@@ -28,6 +27,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#include "action.h"
|
#include "action.h"
|
||||||
#include "wait.h"
|
#include "wait.h"
|
||||||
|
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
# include "backlight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG_ACTION
|
#ifdef DEBUG_ACTION
|
||||||
# include "debug.h"
|
# include "debug.h"
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
#include "action.h"
|
#include "action.h"
|
||||||
#include "backlight.h"
|
|
||||||
#include "suspend_avr.h"
|
#include "suspend_avr.h"
|
||||||
#include "suspend.h"
|
#include "suspend.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
@@ -16,6 +15,10 @@
|
|||||||
# include "lufa.h"
|
# include "lufa.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
# include "backlight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
# include "audio.h"
|
# include "audio.h"
|
||||||
#endif /* AUDIO_ENABLE */
|
#endif /* AUDIO_ENABLE */
|
||||||
|
|||||||
@@ -8,10 +8,13 @@
|
|||||||
#include "action_util.h"
|
#include "action_util.h"
|
||||||
#include "mousekey.h"
|
#include "mousekey.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "backlight.h"
|
|
||||||
#include "suspend.h"
|
#include "suspend.h"
|
||||||
#include "wait.h"
|
#include "wait.h"
|
||||||
|
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
# include "backlight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/** \brief suspend idle
|
/** \brief suspend idle
|
||||||
*
|
*
|
||||||
* FIXME: needs doc
|
* FIXME: needs doc
|
||||||
|
|||||||
@@ -32,10 +32,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#include "sleep_led.h"
|
#include "sleep_led.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "backlight.h"
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
# include "backlight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef MOUSEKEY_ENABLE
|
#ifdef MOUSEKEY_ENABLE
|
||||||
# include "mousekey.h"
|
# include "mousekey.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -29,8 +29,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "sendchar.h"
|
#include "sendchar.h"
|
||||||
#include "eeconfig.h"
|
#include "eeconfig.h"
|
||||||
#include "backlight.h"
|
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
# include "backlight.h"
|
||||||
|
#endif
|
||||||
#ifdef BOOTMAGIC_ENABLE
|
#ifdef BOOTMAGIC_ENABLE
|
||||||
# include "bootmagic.h"
|
# include "bootmagic.h"
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user