You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
3.7 KiB

Update to drashna userspace and keymaps (#3172) * Use string with delay * Add skipped region to ergodox * Add send string config * Use default_layer_state instead of function * Fully generalize keyboards * old iris cleanup * Fix Drashna keymap compile issues By checking to see if secret.c exists before actually trying to add it * Remove unnecessary references * Add 4x12 ortho board * Update userspace readme for secrets * Make RGB more modular * Fix iris keymap, since we don't need the lower left (Function keys) * Fix includes * Add Blanks * Fix Ergodox lower layer * Add suspend commands * Add Maltron Layout * Add additional layouts * Finish adding gamepad to Iris * Tweaks to iris gamepag layer * make gaming layers more friendly * minor gaming layer tweak * Add Carplax * Add modded key timer function * Cleanup and macro documentation * Add QMK DFU info * Add 'old' keymap for 12 LED spare * Update Pro Micro documentation * Disable twinkling so it fits in firmware space * Switch to QMK DFU bootloader, since it's better anyhow * Write default layer state colors to EEPROM Since we are writing to EEPROM anyways, and this way, it sticks on reboot * Fix QMK DFU bootloader options * More updates for QMK DFU support * Use matrix scanning hack for startup_user until #3113 gets merged * Fix indicator light consistency issue * Add/readd ifdefs to indicators * Add/readd alt indicator * Remove RGB Twinkling from Viterbi macro pad * Fix default layer color detection * Fix rebase and detection issues * Cleanup code so it will compile if RGBLIGHT is disabled * Revert vsode settings * Use Pragma Once instead of boilerplate code
5 years ago
Update to drashna userspace and keymaps (#3172) * Use string with delay * Add skipped region to ergodox * Add send string config * Use default_layer_state instead of function * Fully generalize keyboards * old iris cleanup * Fix Drashna keymap compile issues By checking to see if secret.c exists before actually trying to add it * Remove unnecessary references * Add 4x12 ortho board * Update userspace readme for secrets * Make RGB more modular * Fix iris keymap, since we don't need the lower left (Function keys) * Fix includes * Add Blanks * Fix Ergodox lower layer * Add suspend commands * Add Maltron Layout * Add additional layouts * Finish adding gamepad to Iris * Tweaks to iris gamepag layer * make gaming layers more friendly * minor gaming layer tweak * Add Carplax * Add modded key timer function * Cleanup and macro documentation * Add QMK DFU info * Add 'old' keymap for 12 LED spare * Update Pro Micro documentation * Disable twinkling so it fits in firmware space * Switch to QMK DFU bootloader, since it's better anyhow * Write default layer state colors to EEPROM Since we are writing to EEPROM anyways, and this way, it sticks on reboot * Fix QMK DFU bootloader options * More updates for QMK DFU support * Use matrix scanning hack for startup_user until #3113 gets merged * Fix indicator light consistency issue * Add/readd ifdefs to indicators * Add/readd alt indicator * Remove RGB Twinkling from Viterbi macro pad * Fix default layer color detection * Fix rebase and detection issues * Cleanup code so it will compile if RGBLIGHT is disabled * Revert vsode settings * Use Pragma Once instead of boilerplate code
5 years ago
  1. SRC += $(USER_PATH)/drashna.c \
  2. $(USER_PATH)/callbacks.c \
  3. $(USER_PATH)/keyrecords/process_records.c \
  4. $(USER_PATH)/keyrecords/tapping.c \
  5. $(USER_PATH)/eeconfig_users.c
  6. # TOP_SYMBOLS = yes
  7. DEBOUNCE_TYPE = asym_eager_defer_pk
  8. DEFERRED_EXEC_ENABLE = yes
  9. OS_DETECTION_ENABLE = yes
  10. ifeq ($(PLATFORM),CHIBIOS)
  11. # cortex-m4 has DSP+FPU support, so use hack to enable it for lib8tion
  12. ifeq ($(strip $(MCU)), cortex-m4)
  13. OPT_DEFS += -DFASTLED_TEENSY3
  14. endif
  15. else
  16. ifneq ($(strip $(LTO_SUPPORTED)), no)
  17. LTO_ENABLE = yes
  18. endif
  19. SPACE_CADET_ENABLE = no
  20. GRAVE_ESC_ENABLE = no
  21. endif
  22. # DEBUG_MATRIX_SCAN_RATE_ENABLE = api
  23. -include $(USER_PATH)/../../../qmk_secrets/rules.mk
  24. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  25. OPT_DEFS += -DMAKE_BOOTLOADER
  26. endif
  27. # At least until build.mk or the like drops, this is here to prevent
  28. # VUSB boards from enabling NKRO, as they do not support it. Ideally
  29. # this should be handled per keyboard, but until that happens ...
  30. ifeq ($(strip $(PROTOCOL)), VUSB)
  31. NKRO_ENABLE := no
  32. endif
  33. ifeq ($(strip $(PER_KEY_TAPPING)), yes)
  34. OPT_DEFS += -DPER_KEY_TAPPING
  35. endif
  36. CUSTOM_UNICODE_ENABLE ?= yes
  37. ifeq ($(strip $(CUSTOM_UNICODE_ENABLE)), yes)
  38. UNICODE_ENABLE := no
  39. UNICODEMAP_ENABLE := no
  40. UCIS_ENABLE := no
  41. UNICODE_COMMON := yes
  42. OPT_DEFS += -DCUSTOM_UNICODE_ENABLE
  43. SRC += $(USER_PATH)/keyrecords/unicode.c
  44. endif
  45. CUSTOM_TAP_DANCE ?= yes
  46. ifeq ($(strip $(CUSTOM_TAP_DANCE)), yes)
  47. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  48. SRC += $(USER_PATH)/keyrecords/tap_dances.c
  49. endif
  50. endif
  51. CUSTOM_RGBLIGHT ?= yes
  52. ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
  53. ifeq ($(strip $(CUSTOM_RGBLIGHT)), yes)
  54. SRC += $(USER_PATH)/rgb/rgb_stuff.c
  55. OPT_DEFS += -DCUSTOM_RGBLIGHT
  56. ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
  57. OPT_DEFS += -DRGBLIGHT_NOEEPROM
  58. endif
  59. ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
  60. OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
  61. endif
  62. endif
  63. endif
  64. CUSTOM_RGB_MATRIX ?= yes
  65. ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
  66. ifeq ($(strip $(CUSTOM_RGB_MATRIX)), yes)
  67. SRC += $(USER_PATH)/rgb/rgb_matrix_stuff.c
  68. OPT_DEFS += -DCUSTOM_RGB_MATRIX
  69. endif
  70. endif
  71. KEYLOGGER_ENABLE ?= no
  72. ifdef CONSOLE_ENABLE
  73. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  74. OPT_DEFS += -DKEYLOGGER_ENABLE
  75. endif
  76. endif
  77. ifeq ($(strip $(I2C_SCANNER_ENABLE)), yes)
  78. OPT_DEFS += -DI2C_SCANNER_ENABLE
  79. CONSOLE_ENABLE := yes
  80. endif
  81. -include $(USER_PATH)/oled/rules.mk
  82. CUSTOM_POINTING_DEVICE ?= yes
  83. ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
  84. ifeq ($(strip $(CUSTOM_POINTING_DEVICE)), yes)
  85. SRC += $(USER_PATH)/pointing/pointing.c
  86. OPT_DEFS += -DCUSTOM_POINTING_DEVICE
  87. OPT_DEFS += -DPOINTING_DEVICE_AUTO_MOUSE_ENABLE
  88. endif
  89. POINTING_DEVICE_MOUSE_JIGGLER_ENABLE ?= yes
  90. ifeq ($(strip $(POINTING_DEVICE_MOUSE_JIGGLER_ENABLE)), yes)
  91. OPT_DEFS += -DPOINTING_DEVICE_MOUSE_JIGGLER_ENABLE
  92. endif
  93. endif
  94. CUSTOM_SPLIT_TRANSPORT_SYNC ?= yes
  95. ifeq ($(strip $(CUSTOM_SPLIT_TRANSPORT_SYNC)), yes)
  96. ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
  97. QUANTUM_LIB_SRC += $(USER_PATH)/split/transport_sync.c
  98. OPT_DEFS += -DCUSTOM_SPLIT_TRANSPORT_SYNC
  99. endif
  100. endif
  101. CUSTOM_BOOTMAGIC_ENABLE ?= yes
  102. ifeq ($(strip $(CUSTOM_BOOTMAGIC_ENABLE)), yes)
  103. ifeq ($(strip $(BOOTMAGIC_ENABLE)), yes)
  104. SRC += bootmagic_better.c
  105. endif
  106. endif
  107. CUSTOM_DYNAMIC_MACROS_ENABLE ?= no
  108. ifeq ($(strip $(CUSTOM_DYNAMIC_MACROS_ENABLE)), yes)
  109. SRC += $(USER_PATH)/keyrecords/dynamic_macros.c
  110. OPT_DEFS += -DCUSTOM_DYNAMIC_MACROS_ENABLE
  111. endif
  112. ifeq ($(strip $(HARDWARE_DEBUG_ENABLE)), yes)
  113. LTO_ENABLE := no
  114. OPT := 0
  115. OPT_DEFS += -g
  116. endif