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.

123 lines
3.4 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
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. ifneq ($(PLATFORM),CHIBIOS)
  6. ifneq ($(strip $(LTO_SUPPORTED)), no)
  7. LTO_ENABLE = yes
  8. endif
  9. endif
  10. SPACE_CADET_ENABLE = no
  11. GRAVE_ESC_ENABLE = no
  12. # DEBUG_MATRIX_SCAN_RATE_ENABLE = api
  13. ifneq ($(strip $(NO_SECRETS)), yes)
  14. ifneq ("$(wildcard $(USER_PATH)/keyrecords/secrets.c)","")
  15. SRC += $(USER_PATH)/keyrecords/secrets.c
  16. endif
  17. ifeq ($(strip $(NO_SECRETS)), lite)
  18. OPT_DEFS += -DNO_SECRETS
  19. endif
  20. endif
  21. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  22. OPT_DEFS += -DMAKE_BOOTLOADER
  23. endif
  24. # At least until build.mk or the like drops, this is here to prevent
  25. # VUSB boards from enabling NKRO, as they do not support it. Ideally
  26. # this should be handled per keyboard, but until that happens ...
  27. ifeq ($(strip $(PROTOCOL)), VUSB)
  28. NKRO_ENABLE := no
  29. endif
  30. CUSTOM_UNICODE_ENABLE ?= yes
  31. ifeq ($(strip $(CUSTOM_UNICODE_ENABLE)), yes)
  32. UNICODE_ENABLE := no
  33. UNICODEMAP_ENABLE := no
  34. UCIS_ENABLE := no
  35. UNICODE_COMMON := yes
  36. OPT_DEFS += -DCUSTOM_UNICODE_ENABLE
  37. SRC += $(USER_PATH)/keyrecords/unicode.c
  38. endif
  39. CUSTOM_TAP_DANCE ?= yes
  40. ifeq ($(strip $(CUSTOM_TAP_DANCE)), yes)
  41. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  42. SRC += $(USER_PATH)/keyrecords/tap_dances.c
  43. endif
  44. endif
  45. CUSTOM_RGBLIGHT ?= yes
  46. ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
  47. ifeq ($(strip $(CUSTOM_RGBLIGHT)), yes)
  48. SRC += $(USER_PATH)/rgb/rgb_stuff.c
  49. ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
  50. OPT_DEFS += -DRGBLIGHT_NOEEPROM
  51. endif
  52. ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
  53. OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
  54. endif
  55. endif
  56. endif
  57. CUSTOM_RGB_MATRIX ?= yes
  58. ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
  59. ifeq ($(strip $(CUSTOM_RGB_MATRIX)), yes)
  60. SRC += $(USER_PATH)/rgb/rgb_matrix_stuff.c
  61. endif
  62. endif
  63. KEYLOGGER_ENABLE ?= no
  64. ifdef CONSOLE_ENABLE
  65. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  66. OPT_DEFS += -DKEYLOGGER_ENABLE
  67. endif
  68. endif
  69. CUSTOM_OLED_DRIVER ?= yes
  70. ifeq ($(strip $(OLED_ENABLE)), yes)
  71. ifeq ($(strip $(OLED_DRIVER)), custom)
  72. OPT_DEFS += -DOLED_ENABLE \
  73. -DOLED_DRIVER_SH1107
  74. SRC += $(USER_PATH)/oled/sh110x.c
  75. QUANTUM_LIB_SRC += i2c_master.c
  76. endif
  77. ifeq ($(strip $(CUSTOM_OLED_DRIVER)), yes)
  78. OPT_DEFS += -DCUSTOM_OLED_DRIVER_CODE
  79. SRC += $(USER_PATH)/oled/oled_stuff.c
  80. endif
  81. ifeq ($(strip $(OLED_DISPLAY_TEST)), yes)
  82. OPT_DEFS += -DOLED_DISPLAY_TEST
  83. endif
  84. DEFERRED_EXEC_ENABLE = yes
  85. endif
  86. CUSTOM_POINTING_DEVICE ?= yes
  87. ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
  88. ifeq ($(strip $(CUSTOM_POINTING_DEVICE)), yes)
  89. SRC += $(USER_PATH)/pointing/pointing.c
  90. endif
  91. endif
  92. CUSTOM_SPLIT_TRANSPORT_SYNC ?= yes
  93. ifeq ($(strip $(CUSTOM_SPLIT_TRANSPORT_SYNC)), yes)
  94. ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
  95. QUANTUM_LIB_SRC += $(USER_PATH)/split/transport_sync.c
  96. OPT_DEFS += -DCUSTOM_SPLIT_TRANSPORT_SYNC
  97. endif
  98. endif
  99. AUTOCORRECTION_ENABLE ?= no
  100. ifeq ($(strip $(AUTOCORRECTION_ENABLE)), yes)
  101. SRC += $(USER_PATH)/keyrecords/autocorrection/autocorrection.c
  102. OPT_DEFS += -DAUTOCORRECTION_ENABLE
  103. endif
  104. CAPS_WORD_ENABLE ?= no
  105. ifeq ($(strip $(CAPS_WORD_ENABLE)), yes)
  106. SRC += $(USER_PATH)/keyrecords/caps_word.c
  107. OPT_DEFS += -DCAPS_WORD_ENABLE
  108. endif