diff options
| author | Joel Challis <git@zvecr.com> | 2019-10-05 16:57:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-05 16:57:00 +0100 |
| commit | 38aefaf78e3d9f17ef561f031679a02c9fba869c (patch) | |
| tree | 9de5fc423f20d27daedeee0500faad57ce8712a2 /common_features.mk | |
| parent | 60b2a9a5ea88321629e970e936652cc1ba786b80 (diff) | |
| download | qmk_firmware-38aefaf78e3d9f17ef561f031679a02c9fba869c.tar.gz qmk_firmware-38aefaf78e3d9f17ef561f031679a02c9fba869c.zip | |
ARM - Initial backlight support (#6487)
* Move AVR backlight to own file, add borrowed ARM implementation
* Tiny fix for backlight custom logic
* Remove duplicate board from rebase
* Fix f303 onekey example
* clang-format
* clang-format
* Remove backlight keymap debug
* Initial pass of ARM backlight docs
* Initial pass of ARM backlight docs - resolve todos
* fix rules validation logic
* Add f072 warning
* Add f072 warning
* tidy up breathing in backlight keymap
* tidy up breathing in backlight keymap
* add missing break to backlight keymap
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/common_features.mk b/common_features.mk index 79af8a225..05a99fc63 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -229,13 +229,32 @@ ifeq ($(strip $(LCD_ENABLE)), yes) | |||
| 229 | CIE1931_CURVE = yes | 229 | CIE1931_CURVE = yes |
| 230 | endif | 230 | endif |
| 231 | 231 | ||
| 232 | ifeq ($(strip $(BACKLIGHT_ENABLE)), yes) | 232 | # backward compat |
| 233 | ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes) | ||
| 234 | BACKLIGHT_ENABLE = custom | ||
| 235 | endif | ||
| 236 | |||
| 237 | VALID_BACKLIGHT_TYPES := yes custom | ||
| 238 | |||
| 239 | BACKLIGHT_ENABLE ?= no | ||
| 240 | ifneq ($(strip $(BACKLIGHT_ENABLE)), no) | ||
| 241 | ifeq ($(filter $(BACKLIGHT_ENABLE),$(VALID_BACKLIGHT_TYPES)),) | ||
| 242 | $(error BACKLIGHT_ENABLE="$(BACKLIGHT_ENABLE)" is not a valid backlight type) | ||
| 243 | endif | ||
| 244 | |||
| 233 | ifeq ($(strip $(VISUALIZER_ENABLE)), yes) | 245 | ifeq ($(strip $(VISUALIZER_ENABLE)), yes) |
| 234 | CIE1931_CURVE = yes | 246 | CIE1931_CURVE = yes |
| 235 | endif | 247 | endif |
| 236 | ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes) | 248 | |
| 249 | ifeq ($(strip $(BACKLIGHT_ENABLE)), custom) | ||
| 237 | OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER | 250 | OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER |
| 238 | endif | 251 | endif |
| 252 | |||
| 253 | ifeq ($(PLATFORM),AVR) | ||
| 254 | SRC += $(QUANTUM_DIR)/backlight/backlight_avr.c | ||
| 255 | else | ||
| 256 | SRC += $(QUANTUM_DIR)/backlight/backlight_arm.c | ||
| 257 | endif | ||
| 239 | endif | 258 | endif |
| 240 | 259 | ||
| 241 | ifeq ($(strip $(CIE1931_CURVE)), yes) | 260 | ifeq ($(strip $(CIE1931_CURVE)), yes) |
