aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornielsenz <nielsenz@oregonstate.edu>2017-03-30 20:10:34 -0700
committernielsenz <nielsenz@oregonstate.edu>2017-03-30 20:10:34 -0700
commitd1e66e2e0715c680a8da3216525b54fd8f2b671f (patch)
tree48e8fe12880f58ebc7e143d245af5826c20b6f54
parent7e54332890f4c376314f942574c6183c87a6e9c8 (diff)
downloadqmk_firmware-d1e66e2e0715c680a8da3216525b54fd8f2b671f.tar.gz
qmk_firmware-d1e66e2e0715c680a8da3216525b54fd8f2b671f.zip
Worked around some new Makefile issues.
-rw-r--r--keyboards/planck/keymaps/zach/Makefile2
-rw-r--r--keyboards/planck/keymaps/zach/config.h2
-rw-r--r--keyboards/planck/keymaps/zach/zach_common_functions.c50
-rw-r--r--keyboards/preonic/keymaps/zach/Makefile4
-rw-r--r--keyboards/preonic/keymaps/zach/config.h2
-rw-r--r--keyboards/preonic/keymaps/zach/zach_common_functions.c50
-rw-r--r--quantum/process_keycode/process_tap_dance.c2
-rw-r--r--quantum/process_keycode/process_unicode.c1
-rw-r--r--quantum/process_keycode/process_unicode_common.c1
9 files changed, 58 insertions, 56 deletions
diff --git a/keyboards/planck/keymaps/zach/Makefile b/keyboards/planck/keymaps/zach/Makefile
index 977f1a901..9d86fc81f 100644
--- a/keyboards/planck/keymaps/zach/Makefile
+++ b/keyboards/planck/keymaps/zach/Makefile
@@ -17,7 +17,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17MIDI_ENABLE = no # MIDI controls 17MIDI_ENABLE = no # MIDI controls
18AUDIO_ENABLE = no # Audio output on port C6 18AUDIO_ENABLE = no # Audio output on port C6
19#VARIABLE_TRACE = no # Debug changes to variable values 19#VARIABLE_TRACE = no # Debug changes to variable values
20UNICODE_ENABLE = yes # Unicode 20UNICODE_ENABLE = no # Unicode (can't be used with unicodemap)
21UNICODEMAP_ENABLE = yes # Enable extended unicode 21UNICODEMAP_ENABLE = yes # Enable extended unicode
22BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 22BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
23RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 23RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
diff --git a/keyboards/planck/keymaps/zach/config.h b/keyboards/planck/keymaps/zach/config.h
index 7deb9ebfe..d309c9493 100644
--- a/keyboards/planck/keymaps/zach/config.h
+++ b/keyboards/planck/keymaps/zach/config.h
@@ -77,7 +77,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
77/* disable action features */ 77/* disable action features */
78//#define NO_ACTION_LAYER 78//#define NO_ACTION_LAYER
79#define NO_ACTION_TAPPING 79#define NO_ACTION_TAPPING
80#define NO_ACTION_ONESHOT 80//#define NO_ACTION_ONESHOT
81#define NO_ACTION_MACRO 81#define NO_ACTION_MACRO
82#define NO_ACTION_FUNCTION 82#define NO_ACTION_FUNCTION
83#define PREVENT_STUCK_MODIFIERS 83#define PREVENT_STUCK_MODIFIERS
diff --git a/keyboards/planck/keymaps/zach/zach_common_functions.c b/keyboards/planck/keymaps/zach/zach_common_functions.c
index b77f2b241..2c47b2289 100644
--- a/keyboards/planck/keymaps/zach/zach_common_functions.c
+++ b/keyboards/planck/keymaps/zach/zach_common_functions.c
@@ -141,31 +141,31 @@ qk_tap_dance_action_t tap_dance_actions[] = {
141}; 141};
142#endif 142#endif
143 143
144#ifdef UNICODE_ENABLE 144//#ifdef UNICODE_ENABLE
145// Unicode shortcuts 145// Unicode shortcuts
146#define IBANG UC(0x203D) 146#define IBANG X(0x203D)
147#define RAROW UC(0x2192) 147#define RAROW X(0x2192)
148#define LAROW UC(0x2190) 148#define LAROW X(0x2190)
149#define DEGREE UC(0x00B0) 149#define DEGREE X(0x00B0)
150#define OMEGA UC(0x03A9) 150#define OMEGA X(0x03A9)
151#define WOMEGA UC(0x03C9) 151#define WOMEGA X(0x03C9)
152#define MICRO UC(0x00B5) 152#define MICRO X(0x00B5)
153#define PLUMIN UC(0x00B1) 153#define PLUMIN X(0x00B1)
154#define SUPA2 UC(0x00B2) 154#define SUPA2 X(0x00B2)
155#define ROMAN1 UC(0x2160) 155#define ROMAN1 X(0x2160)
156#define ROMAN2 UC(0x2161) 156#define ROMAN2 X(0x2161)
157#define ROMAN3 UC(0x2162) 157#define ROMAN3 X(0x2162)
158#define ROMAN4 UC(0x2163) 158#define ROMAN4 X(0x2163)
159#define ROMAN5 UC(0x2164) 159#define ROMAN5 X(0x2164)
160#define ROMAN6 UC(0x2165) 160#define ROMAN6 X(0x2165)
161#define ROMAN7 UC(0x2166) 161#define ROMAN7 X(0x2166)
162#define roman1 UC(0x2170) 162#define roman1 X(0x2170)
163#define roman2 UC(0x2171) 163#define roman2 X(0x2171)
164#define roman3 UC(0x2172) 164#define roman3 X(0x2172)
165#define roman4 UC(0x2173) 165#define roman4 X(0x2173)
166#define roman5 UC(0x2174) 166#define roman5 X(0x2174)
167#define roman6 UC(0x2175) 167#define roman6 X(0x2175)
168#define roman7 UC(0x2176) 168#define roman7 X(0x2176)
169 169
170#ifdef UNICODEMAP_ENABLE // For Unicode characters larger than 0x8000. Send with X(<unicode>) 170#ifdef UNICODEMAP_ENABLE // For Unicode characters larger than 0x8000. Send with X(<unicode>)
171enum Ext_Unicode{ 171enum Ext_Unicode{
@@ -192,7 +192,7 @@ const uint32_t PROGMEM unicode_map[] = {
192#define TMBL X(TUMBLER) 192#define TMBL X(TUMBLER)
193#endif 193#endif
194 194
195#endif 195//#endif
196 196
197static uint16_t key_timer; 197static uint16_t key_timer;
198static uint8_t caps_status = 0; 198static uint8_t caps_status = 0;
diff --git a/keyboards/preonic/keymaps/zach/Makefile b/keyboards/preonic/keymaps/zach/Makefile
index f0a84abac..eebf41349 100644
--- a/keyboards/preonic/keymaps/zach/Makefile
+++ b/keyboards/preonic/keymaps/zach/Makefile
@@ -17,8 +17,8 @@ BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
17MIDI_ENABLE = no # MIDI controls 17MIDI_ENABLE = no # MIDI controls
18AUDIO_ENABLE = yes # Audio output on port C6 18AUDIO_ENABLE = yes # Audio output on port C6
19#VARIABLE_TRACE = no # Debug changes to variable values 19#VARIABLE_TRACE = no # Debug changes to variable values
20UNICODE_ENABLE = yes # Unicode 20UNICODE_ENABLE = no # Unicode
21UNICODEMAP_ENABLE = no # Enable extended unicode 21UNICODEMAP_ENABLE = yes # Enable extended unicode
22BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 22BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
23RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 23RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
24# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 24# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
diff --git a/keyboards/preonic/keymaps/zach/config.h b/keyboards/preonic/keymaps/zach/config.h
index 59959524f..bb8913c7a 100644
--- a/keyboards/preonic/keymaps/zach/config.h
+++ b/keyboards/preonic/keymaps/zach/config.h
@@ -84,7 +84,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
84/* disable action features */ 84/* disable action features */
85//#define NO_ACTION_LAYER 85//#define NO_ACTION_LAYER
86#define NO_ACTION_TAPPING 86#define NO_ACTION_TAPPING
87#define NO_ACTION_ONESHOT 87//#define NO_ACTION_ONESHOT
88#define NO_ACTION_MACRO 88#define NO_ACTION_MACRO
89#define NO_ACTION_FUNCTION 89#define NO_ACTION_FUNCTION
90#define PREVENT_STUCK_MODIFIERS 90#define PREVENT_STUCK_MODIFIERS
diff --git a/keyboards/preonic/keymaps/zach/zach_common_functions.c b/keyboards/preonic/keymaps/zach/zach_common_functions.c
index b77f2b241..2c47b2289 100644
--- a/keyboards/preonic/keymaps/zach/zach_common_functions.c
+++ b/keyboards/preonic/keymaps/zach/zach_common_functions.c
@@ -141,31 +141,31 @@ qk_tap_dance_action_t tap_dance_actions[] = {
141}; 141};
142#endif 142#endif
143 143
144#ifdef UNICODE_ENABLE 144//#ifdef UNICODE_ENABLE
145// Unicode shortcuts 145// Unicode shortcuts
146#define IBANG UC(0x203D) 146#define IBANG X(0x203D)
147#define RAROW UC(0x2192) 147#define RAROW X(0x2192)
148#define LAROW UC(0x2190) 148#define LAROW X(0x2190)
149#define DEGREE UC(0x00B0) 149#define DEGREE X(0x00B0)
150#define OMEGA UC(0x03A9) 150#define OMEGA X(0x03A9)
151#define WOMEGA UC(0x03C9) 151#define WOMEGA X(0x03C9)
152#define MICRO UC(0x00B5) 152#define MICRO X(0x00B5)
153#define PLUMIN UC(0x00B1) 153#define PLUMIN X(0x00B1)
154#define SUPA2 UC(0x00B2) 154#define SUPA2 X(0x00B2)
155#define ROMAN1 UC(0x2160) 155#define ROMAN1 X(0x2160)
156#define ROMAN2 UC(0x2161) 156#define ROMAN2 X(0x2161)
157#define ROMAN3 UC(0x2162) 157#define ROMAN3 X(0x2162)
158#define ROMAN4 UC(0x2163) 158#define ROMAN4 X(0x2163)
159#define ROMAN5 UC(0x2164) 159#define ROMAN5 X(0x2164)
160#define ROMAN6 UC(0x2165) 160#define ROMAN6 X(0x2165)
161#define ROMAN7 UC(0x2166) 161#define ROMAN7 X(0x2166)
162#define roman1 UC(0x2170) 162#define roman1 X(0x2170)
163#define roman2 UC(0x2171) 163#define roman2 X(0x2171)
164#define roman3 UC(0x2172) 164#define roman3 X(0x2172)
165#define roman4 UC(0x2173) 165#define roman4 X(0x2173)
166#define roman5 UC(0x2174) 166#define roman5 X(0x2174)
167#define roman6 UC(0x2175) 167#define roman6 X(0x2175)
168#define roman7 UC(0x2176) 168#define roman7 X(0x2176)
169 169
170#ifdef UNICODEMAP_ENABLE // For Unicode characters larger than 0x8000. Send with X(<unicode>) 170#ifdef UNICODEMAP_ENABLE // For Unicode characters larger than 0x8000. Send with X(<unicode>)
171enum Ext_Unicode{ 171enum Ext_Unicode{
@@ -192,7 +192,7 @@ const uint32_t PROGMEM unicode_map[] = {
192#define TMBL X(TUMBLER) 192#define TMBL X(TUMBLER)
193#endif 193#endif
194 194
195#endif 195//#endif
196 196
197static uint16_t key_timer; 197static uint16_t key_timer;
198static uint8_t caps_status = 0; 198static uint8_t caps_status = 0;
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c
index 68c8425bb..b807ec3c3 100644
--- a/quantum/process_keycode/process_tap_dance.c
+++ b/quantum/process_keycode/process_tap_dance.c
@@ -16,6 +16,8 @@
16#include "quantum.h" 16#include "quantum.h"
17#include "action_tapping.h" 17#include "action_tapping.h"
18 18
19uint8_t get_oneshot_mods(void);
20
19static uint16_t last_td; 21static uint16_t last_td;
20static int8_t highest_td = -1; 22static int8_t highest_td = -1;
21 23
diff --git a/quantum/process_keycode/process_unicode.c b/quantum/process_keycode/process_unicode.c
index 1f16b9bdb..678a15234 100644
--- a/quantum/process_keycode/process_unicode.c
+++ b/quantum/process_keycode/process_unicode.c
@@ -16,6 +16,7 @@
16#include "process_unicode.h" 16#include "process_unicode.h"
17#include "action_util.h" 17#include "action_util.h"
18 18
19static uint8_t first_flag = 0;
19 20
20bool process_unicode(uint16_t keycode, keyrecord_t *record) { 21bool process_unicode(uint16_t keycode, keyrecord_t *record) {
21 if (keycode > QK_UNICODE && record->event.pressed) { 22 if (keycode > QK_UNICODE && record->event.pressed) {
diff --git a/quantum/process_keycode/process_unicode_common.c b/quantum/process_keycode/process_unicode_common.c
index b4d4231db..1dbdec3e7 100644
--- a/quantum/process_keycode/process_unicode_common.c
+++ b/quantum/process_keycode/process_unicode_common.c
@@ -17,7 +17,6 @@
17#include "process_unicode_common.h" 17#include "process_unicode_common.h"
18 18
19static uint8_t input_mode; 19static uint8_t input_mode;
20static uint8_t first_flag = 0;
21uint8_t mods; 20uint8_t mods;
22 21
23void set_unicode_input_mode(uint8_t os_target) 22void set_unicode_input_mode(uint8_t os_target)