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.

127 lines
3.6 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
6 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
6 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
6 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. OPT_DEFS += -DCUSTOM_RGBLIGHT
  50. ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
  51. OPT_DEFS += -DRGBLIGHT_NOEEPROM
  52. endif
  53. ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
  54. OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
  55. DEFERRED_EXEC_ENABLE = yes
  56. endif
  57. endif
  58. endif
  59. CUSTOM_RGB_MATRIX ?= yes
  60. ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
  61. ifeq ($(strip $(CUSTOM_RGB_MATRIX)), yes)
  62. SRC += $(USER_PATH)/rgb/rgb_matrix_stuff.c
  63. OPT_DEFS += -DCUSTOM_RGB_MATRIX
  64. endif
  65. endif
  66. KEYLOGGER_ENABLE ?= no
  67. ifdef CONSOLE_ENABLE
  68. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  69. OPT_DEFS += -DKEYLOGGER_ENABLE
  70. endif
  71. endif
  72. CUSTOM_OLED_DRIVER ?= yes
  73. ifeq ($(strip $(OLED_ENABLE)), yes)
  74. ifeq ($(strip $(OLED_DRIVER)), custom)
  75. OPT_DEFS += -DOLED_ENABLE \
  76. -DOLED_DRIVER_SH1107
  77. SRC += $(USER_PATH)/oled/sh110x.c
  78. QUANTUM_LIB_SRC += i2c_master.c
  79. endif
  80. ifeq ($(strip $(CUSTOM_OLED_DRIVER)), yes)
  81. OPT_DEFS += -DCUSTOM_OLED_DRIVER
  82. SRC += $(USER_PATH)/oled/oled_stuff.c
  83. endif
  84. ifeq ($(strip $(OLED_DISPLAY_TEST)), yes)
  85. OPT_DEFS += -DOLED_DISPLAY_TEST
  86. endif
  87. DEFERRED_EXEC_ENABLE = yes
  88. endif
  89. CUSTOM_POINTING_DEVICE ?= yes
  90. ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
  91. ifeq ($(strip $(CUSTOM_POINTING_DEVICE)), yes)
  92. SRC += $(USER_PATH)/pointing/pointing.c
  93. OPT_DEFS += -DCUSTOM_POINTING_DEVICE
  94. endif
  95. endif
  96. CUSTOM_SPLIT_TRANSPORT_SYNC ?= yes
  97. ifeq ($(strip $(CUSTOM_SPLIT_TRANSPORT_SYNC)), yes)
  98. ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
  99. QUANTUM_LIB_SRC += $(USER_PATH)/split/transport_sync.c
  100. OPT_DEFS += -DCUSTOM_SPLIT_TRANSPORT_SYNC
  101. endif
  102. endif
  103. AUTOCORRECTION_ENABLE ?= no
  104. ifeq ($(strip $(AUTOCORRECTION_ENABLE)), yes)
  105. SRC += $(USER_PATH)/keyrecords/autocorrection/autocorrection.c
  106. OPT_DEFS += -DAUTOCORRECTION_ENABLE
  107. endif
  108. CAPS_WORD_ENABLE ?= no
  109. ifeq ($(strip $(CAPS_WORD_ENABLE)), yes)
  110. SRC += $(USER_PATH)/keyrecords/caps_word.c
  111. OPT_DEFS += -DCAPS_WORD_ENABLE
  112. endif