Update mtei's keymap (helix/rev2:five_rows, helix/pico:mtei, helix/rev3_5rows:five_rows) (#16966)
* add users/mtei/key_blocks.h
This change does not alter the binary of the build result.
Moved common macro definitions in the following files to users/mtei/key_blocks.h.
 * keyboards/helix/rev2/keymaps/five_rows/keymap.c
 * keyboards/helix/rev3_5rows/keymaps/five_rows/keymap.c
* remove INIT_HELIX_OLED() in helix:five_rows
This change does not alter the binary of the build result.
* update helix/pico/keymaps/mtei/keymap.c
Changed helix/pico/keymaps/mtei/keymap.c to use users/mtei/key_blocks.h.
This change does not alter the binary of the build result.
* Remove old SSD1306OLED code from users/mtei/oled_display.c
This change does not alter the binary of the build result.
* add options ENABLE_COLEMAK, ENABLE_DVORAK and ENABLE_EUCALYN into five_rows/keymap.c
* add users/mtei/{config.h,rules.mk,user_featues.mk,user_options.mk}
* move layer_names[] from users/mtei/oled_display.c to keymaps/five_rows/keymap.c
* Update keyboards/helix/pico/keymaps/mtei/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/helix/pico/keymaps/mtei/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/helix/pico/keymaps/mtei/keymap.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/helix/rev2/keymaps/five_rows/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/helix/rev2/keymaps/five_rows/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/helix/rev2/keymaps/five_rows/keymap.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/helix/rev3_5rows/keymaps/five_rows/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/helix/rev3_5rows/keymaps/five_rows/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/helix/rev3_5rows/keymaps/five_rows/keymap.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update users/mtei/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update users/mtei/config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update users/mtei/cpp_map.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update users/mtei/cpp_map.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update users/mtei/debug_config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update users/mtei/debug_config.h
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update users/mtei/layer_number_util.h
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									d241e80533
								
							
						
					
					
						commit
						33d568e29b
					
				
					 23 changed files with 609 additions and 679 deletions
				
			
		
							
								
								
									
										127
									
								
								users/mtei/user_options.mk
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										127
									
								
								users/mtei/user_options.mk
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,127 @@
 | 
			
		|||
# Copyright (c) 2022 Takeshi Ishii (mtei@github)
 | 
			
		||||
# SPDX-License-Identifier: GPL-2.0-or-later
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
#  make USROPT=<option>,<option>,...  <KEYBOARD>:<KEYMAP>
 | 
			
		||||
#  options:
 | 
			
		||||
#    dispoff:     OLED, RGBLIGHT disable
 | 
			
		||||
#    oled:        OLED enable
 | 
			
		||||
#    no-oled:     OLED disable
 | 
			
		||||
#    rgblight:    RGBLIGHT enable
 | 
			
		||||
#    no-rgblight: RGBLIGHT disable
 | 
			
		||||
#    no_ani:      RGBLIGHT ANIMATIONS disable
 | 
			
		||||
#    mini-ani:    RGBLIGHT ANIMATIONS mini set
 | 
			
		||||
#    ani:         RGBLIGHT ANIMATIONS enable
 | 
			
		||||
#    scan:        DEBUG_MATRIX_SCAN_RATE enable
 | 
			
		||||
#    scan-api:    DEBUG_MATRIX_SCAN_RATE api enable
 | 
			
		||||
#    mdelay=<num> MATRIX_IO_DELAY set <num>
 | 
			
		||||
#    mdelay_type=<type> use custom matrix_output_unselect_delay()
 | 
			
		||||
#                 type=no,ondemand
 | 
			
		||||
#    enc:         ENCODER enable
 | 
			
		||||
#    no-enc:      ENCODER disable
 | 
			
		||||
#
 | 
			
		||||
ifneq ($(strip $(USROPT)),)
 | 
			
		||||
  define USER_OPTION_PARSE
 | 
			
		||||
    # parse 'debug', 'no-debug', 'dispoff', 'consle', 'scan', 'no-scan', 'scan-api',
 | 
			
		||||
    #   'mdelay=?', 'mdelay0', 'colemak', 'dvorak', 'eucalyn', 'lto', 'no-lto'
 | 
			
		||||
    $(if $(SHOW_PARSE),$(info parse .$1.))  #for debug  'make SHOW_PARSE=y ...'
 | 
			
		||||
    ifeq ($(strip $1),debug)
 | 
			
		||||
        DEBUG_CONFIG = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter nodebug no-debug no_debug,$(strip $1)),)
 | 
			
		||||
        DEBUG_CONFIG = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),dispoff)
 | 
			
		||||
        OLED_ENABLE = no
 | 
			
		||||
        RGBLIGHT_ENABLE = no
 | 
			
		||||
        LED_BACK_ENABLE = no
 | 
			
		||||
        LED_UNDERGLOW_ENABLE = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter rgblight,$(strip $1)),)
 | 
			
		||||
        RGBLIGHT_ENABLE = yes
 | 
			
		||||
        LED_BACK_ENABLE = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter norgblight no-rgblight,$(strip $1)),)
 | 
			
		||||
        RGBLIGHT_ENABLE = no
 | 
			
		||||
        LED_BACK_ENABLE = no
 | 
			
		||||
        LED_UNDERGLOW_ENABLE = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter na no_ani no-ani,$(strip $1)),)
 | 
			
		||||
        LED_ANIMATIONS = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter mini-ani mini_ani,$(strip $1)),)
 | 
			
		||||
        LED_ANIMATIONS = mini
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter ani animation,$(strip $1)),)
 | 
			
		||||
        LED_ANIMATIONS = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter nooled no-oled,$(strip $1)),)
 | 
			
		||||
        OLED_ENABLE = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),oled)
 | 
			
		||||
        OLED_ENABLE = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),console)
 | 
			
		||||
        CONSOLE_ENABLE = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),scan)
 | 
			
		||||
        # use DEBUG_MATRIX_SCAN_RATE
 | 
			
		||||
        # see docs/newbs_testing_debugging.md
 | 
			
		||||
        DEBUG_MATRIX_SCAN_RATE_ENABLE = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),no-scan)
 | 
			
		||||
        DEBUG_MATRIX_SCAN_RATE_ENABLE = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),scan-api)
 | 
			
		||||
        # use DEBUG_MATRIX_SCAN_RATE
 | 
			
		||||
        # see docs/newbs_testing_debugging.md
 | 
			
		||||
        DEBUG_MATRIX_SCAN_RATE_ENABLE = api
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter stimer sync-timer,$(strip $1)),)
 | 
			
		||||
        SYNC_TIMER_ENABLE = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter nostimer no-sync-timer,$(strip $1)),)
 | 
			
		||||
        SYNC_TIMER_ENABLE = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(filter mdelay_type=%,$1),mdelay_type=no)
 | 
			
		||||
        CUSTOM_MATRIX_DELAY = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(filter mdelay_type=%,$1),mdelay_type=demand)
 | 
			
		||||
        CUSTOM_MATRIX_DELAY = on-demand
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter mdelay=%,$1),)
 | 
			
		||||
        MDELAY = $(patsubst mdelay=%,%,$1)
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),mdelay0)
 | 
			
		||||
        MDELAY = 0
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),colemak)
 | 
			
		||||
         ENABLE_COLEMAK = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),dvorak)
 | 
			
		||||
         ENABLE_DVORAK = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),eucalyn)
 | 
			
		||||
         ENABLE_EUCALYN = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifeq ($(strip $1),lto)
 | 
			
		||||
        LTO_ENABLE = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter nolto no-lto no_lto,$(strip $1)),)
 | 
			
		||||
        LTO_ENABLE = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter enc,$(strip $1)),)
 | 
			
		||||
        ENCODER_ENABLE = yes
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter noenc no-enc no_enc,$(strip $1)),)
 | 
			
		||||
        ENCODER_ENABLE = no
 | 
			
		||||
    endif
 | 
			
		||||
    ifneq ($(filter debugenc debug-enc debug_enc,$(strip $1)),)
 | 
			
		||||
        DEBUG_ENCODER = yes
 | 
			
		||||
    endif
 | 
			
		||||
  endef # end of USER_OPTION_PARSE
 | 
			
		||||
 | 
			
		||||
  COMMA=,
 | 
			
		||||
  $(eval $(foreach A_OPTION_NAME,$(subst $(COMMA), ,$(USROPT)),  \
 | 
			
		||||
      $(call USER_OPTION_PARSE,$(A_OPTION_NAME))))
 | 
			
		||||
endif
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue