mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-24 20:32:58 +00:00
b89abc402b
* update handwired/symmetric70_proto/matrix.c * make keyboards/handwired/symmetric70_proto/promicro/ * add symmetric70_proto/debug_config.h, update symmetric70_proto/local_features.mk etc. set MATRIX_IO_DELAY macro make MTEST=mdelay0 symmetric70_proto/promicro:default:flash make MTEST=mdelay1 symmetric70_proto/promicro:default:flash make MTEST=mdelay10 symmetric70_proto/promicro:default:flash make MTEST=mdelay30 symmetric70_proto/promicro:default:flash set DEBUG_MATRIX_SCAN_RATE_ENABLE yes make MTEST=scan symmetric70_proto/promicro:default:flash set MATRIX_DEBUG_DELAY and MATRIX_IO_DELAY macro make MTEST=matrix_debug_delay,mdelay0 symmetric70_proto/promicro:default:flash set MATRIX_DEBUG_SCAN make MTEST=matrix_debug_scan symmetric70_proto/promicro:default:flash * add symmetric70_proto/matrix_debug/readme.md * update symmetric70_proto/matrix_debug/readme.md * update handwired/symmetric70_proto/readme.md * update handwired/symmetric70_proto/readme.md * update handwired/symmetric70_proto/*/readme.md * add handwired/symmetric70_proto/matrix_fast/ * update handwired/symmetric70_proto/matrix_fast/readme.md * fix typo in handwired/symmetric70_proto/matrix_fast/readme.md * update config.h under handwired/symmetric70_proto/promicro * add Proton C support to handwired/symmetric70_proto * add handwired/symmetric70_proto/proton_c/readme.md * add promicro/*/readme.md proton_c/*/readme.md * update handwired/symmetric70_proto/proton_c/proton_c.c support MATRIX_IO_DELAY_DEFAULT for testing. * Added another implementation of 'adaptive_delay'. * update symmetric70_proto/local_features.mk * update symmetric70_proto/matrix_fast/gpio_extr.h * add matrix_output_unselect_delay_ports() * add MTEST=adaptive_delay_fast option * update symmetric70_proto/matrix_debug/readme.md * update symmetric70_proto/matrix_fast/readme.md * update symmetric70_proto/matrix_debug/readme.md * Erase garbage * fix symmetric70_proto/proton_c/proton_c.c * improve adaptive_delay_fast in symmetric70_proto/matrix_debug/matrix.c * update symmetric70_proto/matrix_debug/readme.md * fix symmetric70_proto/matrix_debug/readme.md * Update keyboards/handwired/symmetric70_proto/proton_c/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/handwired/symmetric70_proto/proton_c/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/handwired/symmetric70_proto/local_features.mk Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/handwired/symmetric70_proto/local_features.mk Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/handwired/symmetric70_proto/local_features.mk Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/handwired/symmetric70_proto/matrix_debug/readme.md Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/handwired/symmetric70_proto/matrix_debug/readme.md Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/handwired/symmetric70_proto/matrix_debug/readme.md Co-authored-by: Nick Brassel <nick@tzarc.org> * Update keyboards/handwired/symmetric70_proto/matrix_fast/matrix_config_expand.c Co-authored-by: Nick Brassel <nick@tzarc.org> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
109 lines
3.4 KiB
Makefile
109 lines
3.4 KiB
Makefile
# matrix.c testing options
|
|
# set MATRIX_IO_DELAY macro
|
|
# make MTEST=mdelay0 symmetric70_proto/{promicro|proton_c}/{fast|normal}:default:flash
|
|
# make MTEST=mdelay=1 symmetric70_proto/{promicro|proton_c}/{fast|normal}:default:flash
|
|
# make MTEST=mdelay=10 symmetric70_proto/{promicro|proton_c}/{fast|normal}:default:flash
|
|
# set DEBUG_MATRIX_SCAN_RATE_ENABLE yes
|
|
# make MTEST=scan symmetric70_proto/{promicro|proton_c}/{fast|normal}:default:flash
|
|
# set MATRIX_DEBUG_DELAY and MATRIX_IO_DELAY macro
|
|
# make MTEST=matrix_debug_delay,mdelay0 symmetric70_proto/{promicro|proton_c}/{fast|normal}:default:flash
|
|
# set MATRIX_DEBUG_SCAN
|
|
# make MTEST=matrix_debug_scan symmetric70_proto/{promicro|proton_c}/{fast|normal}:default:flash
|
|
|
|
ifneq ($(strip $(MTEST)),)
|
|
define KEYBOARD_OPTION_PARSE
|
|
# parse 'consle', 'scan', 'no-scan', 'mdelay=?', 'mdelay0',
|
|
# 'adaptive_delay', 'always_delay', 'matrix_debug_delay', 'matrix_debug_scan'
|
|
$(if $(SHOW_PARSE),$(info parse .$1.)) #for debug 'make SHOW_PARSE=y ...'
|
|
ifeq ($(strip $1),console)
|
|
CONSOLE_ENABLE = yes
|
|
endif
|
|
ifeq ($(strip $1),scan)
|
|
DEBUG_MATRIX_SCAN_RATE_ENABLE = yes
|
|
endif
|
|
ifeq ($(strip $1),no-scan)
|
|
DEBUG_MATRIX_SCAN_RATE_ENABLE = no
|
|
endif
|
|
ifneq ($(filter mdelay=%,$1),)
|
|
MDELAY = $(patsubst mdelay=%,%,$1)
|
|
endif
|
|
ifeq ($(strip $1),mdelay0)
|
|
MDELAY = 0
|
|
endif
|
|
ifeq ($(strip $1),common_delay)
|
|
MATRIX_COMMON_DELAY = yes
|
|
endif
|
|
ifeq ($(strip $1),adaptive_delay)
|
|
ADAPTIVE_DELAY = yes
|
|
endif
|
|
ifeq ($(strip $1),adaptive_delay2)
|
|
ADAPTIVE_DELAY2 = yes
|
|
endif
|
|
ifeq ($(strip $1),adaptive_delay_fast)
|
|
ADAPTIVE_DELAY_FAST = yes
|
|
endif
|
|
ifeq ($(strip $1),always_delay)
|
|
ALWAYS_DELAY = yes
|
|
endif
|
|
ifeq ($(strip $1),matrix_debug_delay)
|
|
MATRIX_DEBUG_DELAY = yes
|
|
MATRIX_DEBUG_SCAN = no
|
|
endif
|
|
ifeq ($(strip $1),matrix_debug_scan)
|
|
MATRIX_DEBUG_DELAY = no
|
|
MATRIX_DEBUG_SCAN = yes
|
|
endif
|
|
endef # end of KEYMAP_OPTION_PARSE
|
|
|
|
COMMA=,
|
|
$(eval $(foreach A_OPTION_NAME,$(subst $(COMMA), ,$(MTEST)), \
|
|
$(call KEYBOARD_OPTION_PARSE,$(A_OPTION_NAME))))
|
|
endif
|
|
|
|
ifneq ($(strip $(MDELAY)),)
|
|
OPT_DEFS += -DMATRIX_IO_DELAY=$(strip $(MDELAY))
|
|
endif
|
|
|
|
ifeq ($(strip $(ADAPTIVE_DELAY)),yes)
|
|
OPT_DEFS += -DMATRIX_IO_DELAY_ADAPTIVE
|
|
endif
|
|
|
|
ifeq ($(strip $(ADAPTIVE_DELAY2)),yes)
|
|
OPT_DEFS += -DMATRIX_IO_DELAY_ADAPTIVE2
|
|
endif
|
|
|
|
ifeq ($(strip $(ADAPTIVE_DELAY_FAST)),yes)
|
|
OPT_DEFS += -DMATRIX_IO_DELAY_ADAPTIVE_FAST
|
|
endif
|
|
|
|
ifeq ($(strip $(ALWAYS_DELAY)),yes)
|
|
OPT_DEFS += -DMATRIX_IO_DELAY_ALWAYS
|
|
endif
|
|
|
|
ifeq ($(strip $(MATRIX_DEBUG_DELAY)),yes)
|
|
OPT_DEFS += -DMATRIX_DEBUG_DELAY
|
|
DEBUG_CONFIG = yes
|
|
endif
|
|
|
|
ifeq ($(strip $(MATRIX_DEBUG_SCAN)),yes)
|
|
OPT_DEFS += -DMATRIX_DEBUG_SCAN
|
|
DEBUG_CONFIG = yes
|
|
endif
|
|
|
|
ifeq ($(strip $(DEBUG_CONFIG)),yes)
|
|
# include "debug_config.h" from {promicro|proton_c}/config.h
|
|
OPT_DEFS += -DDEBUG_CONFIG
|
|
endif
|
|
|
|
ifeq ($(strip $(MATRIX_COMMON_DELAY)),yes)
|
|
# use matrix_output_unselect_delay() in matrix_common.c
|
|
OPT_DEFS += -DMATRIX_IO_DELAY_DEFAULT
|
|
endif
|
|
|
|
$(info -)
|
|
$(info - DEBUG_MATRIX_SCAN_RATE_ENABLE = $(DEBUG_MATRIX_SCAN_RATE_ENABLE))
|
|
$(info - CONSOLE_ENABLE = $(CONSOLE_ENABLE))
|
|
$(info - MDELAY = $(MDELAY))
|
|
$(info - MATRIX_COMMON_DELAY = $(MATRIX_COMMON_DELAY))
|
|
$(info - OPT_DEFS = $(OPT_DEFS))
|