aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIBNobody <ibnobody@gmail.com>2016-04-14 22:29:33 -0500
committerIBNobody <ibnobody@gmail.com>2016-04-14 22:29:33 -0500
commitd4f90fe882b33a99fd94e1befdf21323293e71ea (patch)
tree471c87ffe70b7ffb18b2282c68dcbd51cedc3cb4
parent3dd20f2b6c16ea56bacc5e1581db3fbc1cfc5444 (diff)
parent63462bf8c12cea1c13ca1bd1f105fe53f556806e (diff)
downloadqmk_firmware-d4f90fe882b33a99fd94e1befdf21323293e71ea.tar.gz
qmk_firmware-d4f90fe882b33a99fd94e1befdf21323293e71ea.zip
Merge remote-tracking branch 'remotes/jackhumbert/new_defaults'
-rw-r--r--keyboard/planck/Makefile56
-rw-r--r--keyboard/planck/keymaps/default/keymap.c167
-rw-r--r--keyboard/planck/keymaps/default/makefile.mk1
-rw-r--r--quantum/quantum.mk8
-rw-r--r--tmk_core/common.mk26
-rw-r--r--tmk_core/protocol/lufa.mk4
6 files changed, 202 insertions, 60 deletions
diff --git a/keyboard/planck/Makefile b/keyboard/planck/Makefile
index ae637fc29..dc6e46df2 100644
--- a/keyboard/planck/Makefile
+++ b/keyboard/planck/Makefile
@@ -38,6 +38,27 @@
38# To rebuild project do "make clean" then "make all". 38# To rebuild project do "make clean" then "make all".
39#---------------------------------------------------------------------------- 39#----------------------------------------------------------------------------
40 40
41# Build Options
42# change to "no" to disable the options, or define them in the makefile.mk in
43# the appropriate keymap folder that will get included automatically
44#
45BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
46MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
47EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
48CONSOLE_ENABLE = yes # Console for debug(+400)
49COMMAND_ENABLE = yes # Commands for debug and configuration
50NKRO_ENABLE = no # USB Nkey Rollover - if this doesn't work, see here:
51 # https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
52BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
53MIDI_ENABLE = no # MIDI controls
54AUDIO_ENABLE = no # Audio output on port C6
55UNICODE_ENABLE = no # Unicode
56BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
57RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
58
59# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
60SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
61
41# Target file name (without extension). 62# Target file name (without extension).
42TARGET = planck 63TARGET = planck
43 64
@@ -62,17 +83,28 @@ ifneq ("$(wildcard keymaps/$(KEYMAP).c)","")
62else 83else
63ifneq ("$(wildcard keymaps/$(KEYMAP)/keymap.c)","") 84ifneq ("$(wildcard keymaps/$(KEYMAP)/keymap.c)","")
64 KEYMAP_FILE = keymaps/$(KEYMAP)/keymap.c 85 KEYMAP_FILE = keymaps/$(KEYMAP)/keymap.c
86ifneq ("$(wildcard keymaps/$(KEYMAP)/makefile.mk)","")
87 include keymaps/$(KEYMAP)/makefile.mk
88endif
65else 89else
66$(error Keymap file does not exist) 90$(error Keymap file does not exist)
91endif
67endif 92endif
68endif 93
69else 94else
95
70ifneq ("$(wildcard keymaps/default.c)","") 96ifneq ("$(wildcard keymaps/default.c)","")
71 KEYMAP_FILE = keymaps/default.c 97 KEYMAP_FILE = keymaps/default.c
72else 98else
73 KEYMAP_FILE = keymaps/default/keymap.c 99 KEYMAP_FILE = keymaps/default/keymap.c
74endif 100endif
101
102ifneq ("$(wildcard keymaps/default/makefile.mk)","")
103 include keymaps/default/makefile.mk
75endif 104endif
105
106endif
107
76SRC := $(KEYMAP_FILE) $(SRC) 108SRC := $(KEYMAP_FILE) $(SRC)
77 109
78CONFIG_H = config.h 110CONFIG_H = config.h
@@ -127,27 +159,7 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
127OPT_DEFS += -DBOOTLOADER_SIZE=4096 159OPT_DEFS += -DBOOTLOADER_SIZE=4096
128 160
129 161
130# Build Options 162ifeq ($(BACKLIGHT_ENABLE), yes)
131# comment out to disable the options.
132#
133BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
134MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
135EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
136CONSOLE_ENABLE = yes # Console for debug(+400)
137COMMAND_ENABLE = yes # Commands for debug and configuration
138# NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
139BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
140# MIDI_ENABLE = yes # MIDI controls
141# AUDIO_ENABLE = yes # Audio output on port C6
142# UNICODE_ENABLE = yes # Unicode
143# BLUETOOTH_ENABLE = ye # Enable Bluetooth with the Adafruit EZ-Key HID
144# RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
145
146# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
147#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
148
149
150ifdef BACKLIGHT_ENABLE
151 SRC += backlight.c 163 SRC += backlight.c
152endif 164endif
153 165
diff --git a/keyboard/planck/keymaps/default/keymap.c b/keyboard/planck/keymaps/default/keymap.c
index 30ad87760..97ba5d285 100644
--- a/keyboard/planck/keymaps/default/keymap.c
+++ b/keyboard/planck/keymaps/default/keymap.c
@@ -5,6 +5,10 @@
5#ifdef BACKLIGHT_ENABLE 5#ifdef BACKLIGHT_ENABLE
6 #include "backlight.h" 6 #include "backlight.h"
7#endif 7#endif
8#include "action_layer.h"
9#ifdef AUDIO_ENABLE
10 #include "audio.h"
11#endif
8 12
9// Each layer gets a name for readability, which is then used in the keymap matrix below. 13// Each layer gets a name for readability, which is then used in the keymap matrix below.
10// The underscores don't mean anything - you can have a layer called STUFF or any other name. 14// The underscores don't mean anything - you can have a layer called STUFF or any other name.
@@ -15,6 +19,15 @@
15#define _DV 2 19#define _DV 2
16#define _LW 3 20#define _LW 3
17#define _RS 4 21#define _RS 4
22#define _AD 5
23
24// Macro name shortcuts
25#define M_QW 0
26#define M_CM 1
27#define M_DV 2
28#define M_LW 3
29#define M_RS 4
30#define M_BL 5
18 31
19// Fillers to make layering more clear 32// Fillers to make layering more clear
20#define _______ KC_TRNS 33#define _______ KC_TRNS
@@ -37,7 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
37 {KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC}, 50 {KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC},
38 {KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT}, 51 {KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT},
39 {KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT }, 52 {KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT },
40 {M(0), KC_LCTL, KC_LALT, KC_LGUI, MO(_LW), KC_SPC, KC_SPC, MO(_RS), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT} 53 {M(M_BL), KC_LCTL, KC_LALT, KC_LGUI, M(M_LW), KC_SPC, KC_SPC, M(M_RS), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT}
41}, 54},
42 55
43/* Colemak 56/* Colemak
@@ -55,7 +68,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
55 {KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC}, 68 {KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC},
56 {KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT}, 69 {KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT},
57 {KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT }, 70 {KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT },
58 {M(0), KC_LCTL, KC_LALT, KC_LGUI, MO(_LW), KC_SPC, KC_SPC, MO(_RS), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT} 71 {M(M_BL), KC_LCTL, KC_LALT, KC_LGUI, M(M_LW), KC_SPC, KC_SPC, M(M_RS), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT}
59}, 72},
60 73
61/* Dvorak 74/* Dvorak
@@ -73,43 +86,61 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
73 {KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC}, 86 {KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC},
74 {KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH}, 87 {KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH},
75 {KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT }, 88 {KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT },
76 {M(0), KC_LCTL, KC_LALT, KC_LGUI, MO(_LW), KC_SPC, KC_SPC, MO(_RS), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT} 89 {M(M_BL), KC_LCTL, KC_LALT, KC_LGUI, M(M_LW), KC_SPC, KC_SPC, M(M_RS), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT}
90},
91
92/* Lower
93 * ,-----------------------------------------------------------------------------------.
94 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
95 * |------+------+------+------+------+-------------+------+------+------+------+------|
96 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
97 * |------+------+------+------+------+------|------+------+------+------+------+------|
98 * | | F7 | F8 | F9 | F10 | F11 | F12 | | | | |Enter |
99 * |------+------+------+------+------+------+------+------+------+------+------+------|
100 * | | | | | | | | Next | Vol- | Vol+ | Play |
101 * `-----------------------------------------------------------------------------------'
102 */
103[_LW] = {
104 {KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC},
105 {KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE},
106 {_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______},
107 {_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY}
77}, 108},
78 109
79/* Raise 110/* Raise
80 * ,-----------------------------------------------------------------------------------. 111 * ,-----------------------------------------------------------------------------------.
81 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | 112 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
82 * |------+------+------+------+------+-------------+------+------+------+------+------| 113 * |------+------+------+------+------+-------------+------+------+------+------+------|
83 * | Esc | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | 114 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
84 * |------+------+------+------+------+------|------+------+------+------+------+------| 115 * |------+------+------+------+------+------|------+------+------+------+------+------|
85 * | Shift| F7 | F8 | F9 | F10 | F11 | F12 |Qwerty|Colemk|Dvorak| Reset|Enter | 116 * | | F7 | F8 | F9 | F10 | F11 | F12 | | | | |Enter |
86 * |------+------+------+------+------+------+------+------+------+------+------+------| 117 * |------+------+------+------+------+------+------+------+------+------+------+------|
87 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Next | Vol- | Vol+ | Play | 118 * | | | | | | | | Next | Vol- | Vol+ | Play |
88 * `-----------------------------------------------------------------------------------' 119 * `-----------------------------------------------------------------------------------'
89 */ 120 */
90[_RS] = { 121[_RS] = {
91 {KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC}, 122 {KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC},
92 {_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS}, 123 {KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS},
93 {_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, DF(_QW), DF(_CM), DF(_DV), RESET, _______}, 124 {_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______},
94 {_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY} 125 {_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY}
95}, 126},
96 127
97/* Lower 128/* Adjust (Lower + Raise)
98 * ,-----------------------------------------------------------------------------------. 129 * ,-----------------------------------------------------------------------------------.
99 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | 130 * | | Reset| | | | | | | | | | Del |
100 * |------+------+------+------+------+-------------+------+------+------+------+------| 131 * |------+------+------+------+------+-------------+------+------+------+------+------|
101 * | Esc | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | 132 * | | | | | | | |Qwerty|Colemk|Dvorak| | |
102 * |------+------+------+------+------+------|------+------+------+------+------+------| 133 * |------+------+------+------+------+------|------+------+------+------+------+------|
103 * | Shift| F7 | F8 | F9 | F10 | F11 | F12 |Qwerty|Colemk|Dvorak| Reset|Enter | 134 * | | | | | | | | | | | | |
104 * |------+------+------+------+------+------+------+------+------+------+------+------| 135 * |------+------+------+------+------+------+------+------+------+------+------+------|
105 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Next | Vol- | Vol+ | Play | 136 * | | | | | | | | | | | |
106 * `-----------------------------------------------------------------------------------' 137 * `-----------------------------------------------------------------------------------'
107 */ 138 */
108[_LW] = { 139[_AD] = {
109 {KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC}, 140 {_______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL},
110 {_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE}, 141 {_______, _______, _______, _______, _______, _______, _______, M(M_QW), M(M_CM), M(M_DV), _______, _______},
111 {_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, DF(_QW), DF(_CM), DF(_DV), RESET, _______}, 142 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______},
112 {_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY} 143 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
113} 144}
114}; 145};
115 146
@@ -117,11 +148,92 @@ const uint16_t PROGMEM fn_actions[] = {
117 148
118}; 149};
119 150
151#ifdef AUDIO_ENABLE
152float tone_qw[][2] = {
153 {440.0*pow(2.0,(67)/12.0), 400},
154 {440.0*pow(2.0,(60)/12.0), 400},
155 {0, 800},
156 {440.0*pow(2.0,(67)/12.0), 1600}
157};
158
159float tone_cm[][2] = {
160 {440.0*pow(2.0,(67)/12.0), 400},
161 {440.0*pow(2.0,(60)/12.0), 400},
162 {0, 800},
163 {440.0*pow(2.0,(67)/12.0), 1000},
164 {0, 200},
165 {440.0*pow(2.0,(67)/12.0), 1000}
166};
167
168float tone_dv[][2] = {
169 {440.0*pow(2.0,(67)/12.0), 400},
170 {440.0*pow(2.0,(60)/12.0), 400},
171 {0, 800},
172 {440.0*pow(2.0,(67)/12.0), 800},
173 {0, 200},
174 {440.0*pow(2.0,(67)/12.0), 800},
175 {0, 200},
176 {440.0*pow(2.0,(67)/12.0), 800}
177};
178#endif
179
180#define IS_LAYER_ON(layer) ((layer_state) & (1<<(layer)))
181#define IS_LAYER_OFF(layer) ((!layer_state) & (1<<(layer)))
182
183void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
184 if (IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2)) {
185 layer_on(layer3);
186 } else {
187 layer_off(layer3);
188 }
189}
120const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) 190const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
121{ 191{
122 // MACRODOWN only works in this function 192 // MACRODOWN only works in this function
123 switch(id) { 193 switch(id) {
124 case 0: 194 case M_QW:
195 if (record->event.pressed) {
196 #ifdef AUDIO_ENABLE
197 play_notes(&tone_qw, 4, false);
198 #endif
199 default_layer_set(1UL<<_QW);
200 }
201 break;
202 case M_CM:
203 if (record->event.pressed) {
204 #ifdef AUDIO_ENABLE
205 play_notes(&tone_cm, 6, false);
206 #endif
207 default_layer_set(1UL<<_CM);
208 }
209 break;
210 case M_DV:
211 if (record->event.pressed) {
212 #ifdef AUDIO_ENABLE
213 play_notes(&tone_dv, 8, false);
214 #endif
215 default_layer_set(1UL<<_DV);
216 }
217 break;
218 case M_LW:
219 if (record->event.pressed) {
220 layer_on(_LW);
221 update_tri_layer(_LW, _RS, _AD);
222 } else {
223 layer_off(_LW);
224 update_tri_layer(_LW, _RS, _AD);
225 }
226 break;
227 case M_RS:
228 if (record->event.pressed) {
229 layer_on(_RS);
230 update_tri_layer(_LW, _RS, _AD);
231 } else {
232 layer_off(_RS);
233 update_tri_layer(_LW, _RS, _AD);
234 }
235 break;
236 case M_BL:
125 if (record->event.pressed) { 237 if (record->event.pressed) {
126 register_code(KC_RSFT); 238 register_code(KC_RSFT);
127 #ifdef BACKLIGHT_ENABLE 239 #ifdef BACKLIGHT_ENABLE
@@ -134,3 +246,20 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
134 } 246 }
135 return MACRO_NONE; 247 return MACRO_NONE;
136}; 248};
249
250#ifdef AUDIO_ENABLE
251float start_up[][2] = {
252 {440.0*pow(2.0,(67)/12.0), 650},
253 {440.0*pow(2.0,(64)/12.0), 450},
254 {440.0*pow(2.0,(55)/12.0), 450},
255 {440.0*pow(2.0,(60)/12.0), 450},
256 {440.0*pow(2.0,(64)/12.0), 1000}
257};
258#endif
259
260void matrix_init_user(void) {
261 #ifdef AUDIO_ENABLE
262 init_notes();
263 play_notes(&start_up, 5, false);
264 #endif
265}
diff --git a/keyboard/planck/keymaps/default/makefile.mk b/keyboard/planck/keymaps/default/makefile.mk
new file mode 100644
index 000000000..628167ff6
--- /dev/null
+++ b/keyboard/planck/keymaps/default/makefile.mk
@@ -0,0 +1 @@
AUDIO_ENABLE = yes \ No newline at end of file
diff --git a/quantum/quantum.mk b/quantum/quantum.mk
index de93af7e8..3069f582c 100644
--- a/quantum/quantum.mk
+++ b/quantum/quantum.mk
@@ -23,19 +23,19 @@ ifndef CUSTOM_MATRIX
23 SRC += $(QUANTUM_DIR)/matrix.c 23 SRC += $(QUANTUM_DIR)/matrix.c
24endif 24endif
25 25
26ifdef MIDI_ENABLE 26ifeq ($(MIDI_ENABLE), yes)
27 SRC += $(QUANTUM_DIR)/keymap_midi.c 27 SRC += $(QUANTUM_DIR)/keymap_midi.c
28endif 28endif
29 29
30ifdef AUDIO_ENABLE 30ifeq ($(AUDIO_ENABLE), yes)
31 SRC += $(QUANTUM_DIR)/audio.c 31 SRC += $(QUANTUM_DIR)/audio.c
32endif 32endif
33 33
34ifdef UNICODE_ENABLE 34ifeq ($(UNICODE_ENABLE), yes)
35 SRC += $(QUANTUM_DIR)/keymap_unicode.c 35 SRC += $(QUANTUM_DIR)/keymap_unicode.c
36endif 36endif
37 37
38ifdef RGBLIGHT_ENABLE 38ifeq ($(RGBLIGHT_ENABLE), yes)
39 SRC += $(QUANTUM_DIR)/light_ws2812.c 39 SRC += $(QUANTUM_DIR)/light_ws2812.c
40 SRC += $(QUANTUM_DIR)/rgblight.c 40 SRC += $(QUANTUM_DIR)/rgblight.c
41 OPT_DEFS += -DRGBLIGHT_ENABLE 41 OPT_DEFS += -DRGBLIGHT_ENABLE
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index 89c366f55..8d028d52a 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -17,66 +17,66 @@ SRC += $(COMMON_DIR)/host.c \
17 17
18 18
19# Option modules 19# Option modules
20ifdef BOOTMAGIC_ENABLE 20ifeq ($(BOOTMAGIC_ENABLE), yes)
21 SRC += $(COMMON_DIR)/bootmagic.c 21 SRC += $(COMMON_DIR)/bootmagic.c
22 SRC += $(COMMON_DIR)/avr/eeconfig.c 22 SRC += $(COMMON_DIR)/avr/eeconfig.c
23 OPT_DEFS += -DBOOTMAGIC_ENABLE 23 OPT_DEFS += -DBOOTMAGIC_ENABLE
24endif 24endif
25 25
26ifdef MOUSEKEY_ENABLE 26ifeq ($(MOUSEKEY_ENABLE), yes)
27 SRC += $(COMMON_DIR)/mousekey.c 27 SRC += $(COMMON_DIR)/mousekey.c
28 OPT_DEFS += -DMOUSEKEY_ENABLE 28 OPT_DEFS += -DMOUSEKEY_ENABLE
29 OPT_DEFS += -DMOUSE_ENABLE 29 OPT_DEFS += -DMOUSE_ENABLE
30endif 30endif
31 31
32ifdef EXTRAKEY_ENABLE 32ifeq ($(EXTRAKEY_ENABLE), yes)
33 OPT_DEFS += -DEXTRAKEY_ENABLE 33 OPT_DEFS += -DEXTRAKEY_ENABLE
34endif 34endif
35 35
36ifdef CONSOLE_ENABLE 36ifeq ($(CONSOLE_ENABLE), yes)
37 OPT_DEFS += -DCONSOLE_ENABLE 37 OPT_DEFS += -DCONSOLE_ENABLE
38else 38else
39 OPT_DEFS += -DNO_PRINT 39 OPT_DEFS += -DNO_PRINT
40 OPT_DEFS += -DNO_DEBUG 40 OPT_DEFS += -DNO_DEBUG
41endif 41endif
42 42
43ifdef COMMAND_ENABLE 43ifeq ($(COMMAND_ENABLE), yes)
44 SRC += $(COMMON_DIR)/command.c 44 SRC += $(COMMON_DIR)/command.c
45 OPT_DEFS += -DCOMMAND_ENABLE 45 OPT_DEFS += -DCOMMAND_ENABLE
46endif 46endif
47 47
48ifdef NKRO_ENABLE 48ifeq ($(NKRO_ENABLE), yes)
49 OPT_DEFS += -DNKRO_ENABLE 49 OPT_DEFS += -DNKRO_ENABLE
50endif 50endif
51 51
52ifdef MIDI_ENABLE 52ifeq ($(MIDI_ENABLE), yes)
53 OPT_DEFS += -DMIDI_ENABLE 53 OPT_DEFS += -DMIDI_ENABLE
54endif 54endif
55 55
56ifdef AUDIO_ENABLE 56ifeq ($(AUDIO_ENABLE), yes)
57 OPT_DEFS += -DAUDIO_ENABLE 57 OPT_DEFS += -DAUDIO_ENABLE
58endif 58endif
59 59
60ifdef USB_6KRO_ENABLE 60ifeq ($(USB_6KRO_ENABLE), yes)
61 OPT_DEFS += -DUSB_6KRO_ENABLE 61 OPT_DEFS += -DUSB_6KRO_ENABLE
62endif 62endif
63 63
64ifdef SLEEP_LED_ENABLE 64ifeq ($(SLEEP_LED_ENABLE), yes)
65 SRC += $(COMMON_DIR)/sleep_led.c 65 SRC += $(COMMON_DIR)/sleep_led.c
66 OPT_DEFS += -DSLEEP_LED_ENABLE 66 OPT_DEFS += -DSLEEP_LED_ENABLE
67 OPT_DEFS += -DNO_SUSPEND_POWER_DOWN 67 OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
68endif 68endif
69 69
70ifdef BACKLIGHT_ENABLE 70ifeq ($(BACKLIGHT_ENABLE), yes)
71 SRC += $(COMMON_DIR)/backlight.c 71 SRC += $(COMMON_DIR)/backlight.c
72 OPT_DEFS += -DBACKLIGHT_ENABLE 72 OPT_DEFS += -DBACKLIGHT_ENABLE
73endif 73endif
74 74
75ifdef BLUETOOTH_ENABLE 75ifeq ($(BLUETOOTH_ENABLE), yes)
76 OPT_DEFS += -DBLUETOOTH_ENABLE 76 OPT_DEFS += -DBLUETOOTH_ENABLE
77endif 77endif
78 78
79ifdef KEYMAP_SECTION_ENABLE 79ifeq ($(KEYMAP_SECTION_ENABLE), yes)
80 OPT_DEFS += -DKEYMAP_SECTION_ENABLE 80 OPT_DEFS += -DKEYMAP_SECTION_ENABLE
81 81
82 ifeq ($(strip $(MCU)),atmega32u2) 82 ifeq ($(strip $(MCU)),atmega32u2)
diff --git a/tmk_core/protocol/lufa.mk b/tmk_core/protocol/lufa.mk
index 4905760bb..f3209c227 100644
--- a/tmk_core/protocol/lufa.mk
+++ b/tmk_core/protocol/lufa.mk
@@ -17,7 +17,7 @@ LUFA_SRC = $(LUFA_DIR)/lufa.c \
17 $(LUFA_DIR)/descriptor.c \ 17 $(LUFA_DIR)/descriptor.c \
18 $(LUFA_SRC_USB) 18 $(LUFA_SRC_USB)
19 19
20ifdef MIDI_ENABLE 20ifeq ($(MIDI_ENABLE), yes)
21 LUFA_SRC += $(LUFA_DIR)/midi/midi.c \ 21 LUFA_SRC += $(LUFA_DIR)/midi/midi.c \
22 $(LUFA_DIR)/midi/midi_device.c \ 22 $(LUFA_DIR)/midi/midi_device.c \
23 $(LUFA_DIR)/midi/bytequeue/bytequeue.c \ 23 $(LUFA_DIR)/midi/bytequeue/bytequeue.c \
@@ -25,7 +25,7 @@ ifdef MIDI_ENABLE
25 $(LUFA_SRC_USBCLASS) 25 $(LUFA_SRC_USBCLASS)
26endif 26endif
27 27
28ifdef BLUETOOTH_ENABLE 28ifeq ($(BLUETOOTH_ENABLE), yes)
29 LUFA_SRC += $(LUFA_DIR)/bluetooth.c \ 29 LUFA_SRC += $(LUFA_DIR)/bluetooth.c \
30 $(TMK_DIR)/protocol/serial_uart.c 30 $(TMK_DIR)/protocol/serial_uart.c
31endif 31endif