diff options
| author | alex-ong <the.onga@gmail.com> | 2019-01-26 17:03:46 +1100 |
|---|---|---|
| committer | alex-ong <the.onga@gmail.com> | 2019-01-26 17:03:46 +1100 |
| commit | d0b691df0ee74863ca54ca697aa4d4212cf401a7 (patch) | |
| tree | f584ae6d23347b7256a679fd3eecd653744b6187 /common_features.mk | |
| parent | 3949ab322dcce75f470ddfbe701c8763add69e63 (diff) | |
| download | qmk_firmware-d0b691df0ee74863ca54ca697aa4d4212cf401a7.tar.gz qmk_firmware-d0b691df0ee74863ca54ca697aa4d4212cf401a7.zip | |
DO NOT USE - debounce successfully compiled.
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/common_features.mk b/common_features.mk index 8c3361732..9b9d017a7 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -249,11 +249,15 @@ endif | |||
| 249 | 249 | ||
| 250 | include $(DRIVER_PATH)/qwiic/qwiic.mk | 250 | include $(DRIVER_PATH)/qwiic/qwiic.mk |
| 251 | 251 | ||
| 252 | |||
| 252 | QUANTUM_SRC:= \ | 253 | QUANTUM_SRC:= \ |
| 253 | $(QUANTUM_DIR)/quantum.c \ | 254 | $(QUANTUM_DIR)/quantum.c \ |
| 254 | $(QUANTUM_DIR)/keymap_common.c \ | 255 | $(QUANTUM_DIR)/keymap_common.c \ |
| 255 | $(QUANTUM_DIR)/keycode_config.c | 256 | $(QUANTUM_DIR)/keycode_config.c |
| 256 | 257 | ||
| 258 | |||
| 259 | |||
| 260 | |||
| 257 | # Include the standard or split matrix code if needed | 261 | # Include the standard or split matrix code if needed |
| 258 | ifneq ($(strip $(CUSTOM_MATRIX)), yes) | 262 | ifneq ($(strip $(CUSTOM_MATRIX)), yes) |
| 259 | ifeq ($(strip $(SPLIT_KEYBOARD)), yes) | 263 | ifeq ($(strip $(SPLIT_KEYBOARD)), yes) |
| @@ -263,11 +267,22 @@ ifneq ($(strip $(CUSTOM_MATRIX)), yes) | |||
| 263 | endif | 267 | endif |
| 264 | endif | 268 | endif |
| 265 | 269 | ||
| 266 | # Include the standard debounce code if needed | 270 | DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce |
| 267 | ifneq ($(strip $(CUSTOM_DEBOUNCE)), yes) | 271 | # Debounce Modules. If implemented in matrix.c, don't use these. |
| 268 | QUANTUM_SRC += $(QUANTUM_DIR)/debounce.c | 272 | ifeq ($(strip $(DEBOUNCE_ALGO)), manual) |
| 273 | # Do nothing. do your debouncing in matrix.c | ||
| 274 | else ifeq ($(strip $(DEBOUNCE_ALGO)), sym_g) | ||
| 275 | QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_sym_g.c | ||
| 276 | else ifeq ($(strip $(DEBOUNCE_ALGO)), eager_pk) | ||
| 277 | QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_eager_pk.c | ||
| 278 | else ifeq ($(strip $(CUSTOM_MATRIX)), yes) | ||
| 279 | # Do nothing. Custom matrix code. | ||
| 280 | else # default algorithm | ||
| 281 | QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_sym_g.c | ||
| 269 | endif | 282 | endif |
| 270 | 283 | ||
| 284 | |||
| 285 | |||
| 271 | ifeq ($(strip $(SPLIT_KEYBOARD)), yes) | 286 | ifeq ($(strip $(SPLIT_KEYBOARD)), yes) |
| 272 | OPT_DEFS += -DSPLIT_KEYBOARD | 287 | OPT_DEFS += -DSPLIT_KEYBOARD |
| 273 | 288 | ||
