diff options
author | QMK Bot <hello@qmk.fm> | 2020-12-18 17:29:08 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2020-12-18 17:29:08 +0000 |
commit | 06f9297f9468a48c8be53c48b830e1eaa9a1665d (patch) | |
tree | 7f43f28337b5b54498fab492bc53dfa91ffca9c1 | |
parent | 115b60b0e11f8661385b2219ce5ddbf2982b1f8c (diff) | |
parent | a9f7d4dccc9cd0351658e64d5fbc809c93ac9b46 (diff) | |
download | qmk_firmware-06f9297f9468a48c8be53c48b830e1eaa9a1665d.tar.gz qmk_firmware-06f9297f9468a48c8be53c48b830e1eaa9a1665d.zip |
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r-- | drivers/haptic/DRV2605L.c | 5 | ||||
-rw-r--r-- | keyboards/ai03/orbit/orbit.c | 2 | ||||
-rw-r--r-- | keyboards/ai03/orbit/orbit.h | 2 | ||||
-rw-r--r-- | keyboards/butterstick/sten.h | 3 | ||||
-rw-r--r-- | keyboards/georgi/sten.h | 3 | ||||
-rw-r--r-- | keyboards/gergo/matrix.c | 54 | ||||
-rw-r--r-- | keyboards/omnikeyish/dynamic_macro.c | 2 | ||||
-rw-r--r-- | keyboards/omnikeyish/dynamic_macro.h | 2 | ||||
-rw-r--r-- | quantum/fauxclicky.h | 2 |
9 files changed, 33 insertions, 42 deletions
diff --git a/drivers/haptic/DRV2605L.c b/drivers/haptic/DRV2605L.c index 830d629da..5de2b354c 100644 --- a/drivers/haptic/DRV2605L.c +++ b/drivers/haptic/DRV2605L.c | |||
@@ -21,8 +21,6 @@ | |||
21 | #include <math.h> | 21 | #include <math.h> |
22 | 22 | ||
23 | uint8_t DRV2605L_transfer_buffer[2]; | 23 | uint8_t DRV2605L_transfer_buffer[2]; |
24 | uint8_t DRV2605L_tx_register[0]; | ||
25 | uint8_t DRV2605L_read_buffer[0]; | ||
26 | uint8_t DRV2605L_read_register; | 24 | uint8_t DRV2605L_read_register; |
27 | 25 | ||
28 | void DRV_write(uint8_t drv_register, uint8_t settings) { | 26 | void DRV_write(uint8_t drv_register, uint8_t settings) { |
@@ -32,8 +30,7 @@ void DRV_write(uint8_t drv_register, uint8_t settings) { | |||
32 | } | 30 | } |
33 | 31 | ||
34 | uint8_t DRV_read(uint8_t regaddress) { | 32 | uint8_t DRV_read(uint8_t regaddress) { |
35 | i2c_readReg(DRV2605L_BASE_ADDRESS << 1, regaddress, DRV2605L_read_buffer, 1, 100); | 33 | i2c_readReg(DRV2605L_BASE_ADDRESS << 1, regaddress, &DRV2605L_read_register, 1, 100); |
36 | DRV2605L_read_register = (uint8_t)DRV2605L_read_buffer[0]; | ||
37 | 34 | ||
38 | return DRV2605L_read_register; | 35 | return DRV2605L_read_register; |
39 | } | 36 | } |
diff --git a/keyboards/ai03/orbit/orbit.c b/keyboards/ai03/orbit/orbit.c index 2f149875b..b51ddbc6e 100644 --- a/keyboards/ai03/orbit/orbit.c +++ b/keyboards/ai03/orbit/orbit.c | |||
@@ -208,8 +208,6 @@ uint32_t layer_state_set_kb(uint32_t state) { | |||
208 | 208 | ||
209 | if (is_keyboard_master()) | 209 | if (is_keyboard_master()) |
210 | { | 210 | { |
211 | |||
212 | current_layer = biton32(state); | ||
213 | serial_m2s_buffer.current_layer = biton32(state); | 211 | serial_m2s_buffer.current_layer = biton32(state); |
214 | 212 | ||
215 | // If left half, do the LED toggle thing | 213 | // If left half, do the LED toggle thing |
diff --git a/keyboards/ai03/orbit/orbit.h b/keyboards/ai03/orbit/orbit.h index 211b9ebca..2ada881f3 100644 --- a/keyboards/ai03/orbit/orbit.h +++ b/keyboards/ai03/orbit/orbit.h | |||
@@ -56,8 +56,6 @@ | |||
56 | { R40, R41, R42, R43, R44, R45, KC_NO } \ | 56 | { R40, R41, R42, R43, R44, R45, KC_NO } \ |
57 | } | 57 | } |
58 | 58 | ||
59 | uint8_t current_layer; | ||
60 | |||
61 | extern void led_toggle(int id, bool on); | 59 | extern void led_toggle(int id, bool on); |
62 | void set_all_leds(bool leds[6]); | 60 | void set_all_leds(bool leds[6]); |
63 | extern void set_layer_indicators(uint8_t layer); | 61 | extern void set_layer_indicators(uint8_t layer); |
diff --git a/keyboards/butterstick/sten.h b/keyboards/butterstick/sten.h index 84635a554..0d5c58df2 100644 --- a/keyboards/butterstick/sten.h +++ b/keyboards/butterstick/sten.h | |||
@@ -15,7 +15,6 @@ extern size_t keymapsCount; // Total keymaps | |||
15 | extern uint32_t cChord; // Current Chord | 15 | extern uint32_t cChord; // Current Chord |
16 | extern uint32_t stenoLayers[]; // Chords that simulate QMK layers | 16 | extern uint32_t stenoLayers[]; // Chords that simulate QMK layers |
17 | extern size_t stenoLayerCount; // Number of simulated layers | 17 | extern size_t stenoLayerCount; // Number of simulated layers |
18 | uint32_t refChord; // Reference chord for PC macro | ||
19 | 18 | ||
20 | // Function defs | 19 | // Function defs |
21 | void processChord(bool useFakeSteno); | 20 | void processChord(bool useFakeSteno); |
@@ -35,7 +34,7 @@ void CLICK_MOUSE(uint8_t); | |||
35 | #define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} | 34 | #define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} |
36 | #define PC(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} \ | 35 | #define PC(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} \ |
37 | for(int i = 0; i < stenoLayerCount; i++) { \ | 36 | for(int i = 0; i < stenoLayerCount; i++) { \ |
38 | refChord = stenoLayers[i] | chord; \ | 37 | uint32_t refChord = stenoLayers[i] | chord; \ |
39 | if (cChord == (refChord)) { if (!lookup) {act;} return refChord;}; \ | 38 | if (cChord == (refChord)) { if (!lookup) {act;} return refChord;}; \ |
40 | } | 39 | } |
41 | 40 | ||
diff --git a/keyboards/georgi/sten.h b/keyboards/georgi/sten.h index e94f10fc2..320c49514 100644 --- a/keyboards/georgi/sten.h +++ b/keyboards/georgi/sten.h | |||
@@ -15,7 +15,6 @@ extern size_t keymapsCount; // Total keymaps | |||
15 | extern uint32_t cChord; // Current Chord | 15 | extern uint32_t cChord; // Current Chord |
16 | extern uint32_t stenoLayers[]; // Chords that simulate QMK layers | 16 | extern uint32_t stenoLayers[]; // Chords that simulate QMK layers |
17 | extern size_t stenoLayerCount; // Number of simulated layers | 17 | extern size_t stenoLayerCount; // Number of simulated layers |
18 | uint32_t refChord; // Reference chord for PC macro | ||
19 | 18 | ||
20 | // Function defs | 19 | // Function defs |
21 | void processChord(bool useFakeSteno); | 20 | void processChord(bool useFakeSteno); |
@@ -35,7 +34,7 @@ void CLICK_MOUSE(uint8_t); | |||
35 | #define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} | 34 | #define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} |
36 | #define PC(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} \ | 35 | #define PC(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} \ |
37 | for(int i = 0; i < stenoLayerCount; i++) { \ | 36 | for(int i = 0; i < stenoLayerCount; i++) { \ |
38 | refChord = stenoLayers[i] | chord; \ | 37 | uint32_t refChord = stenoLayers[i] | chord; \ |
39 | if (cChord == (refChord)) { if (!lookup) {act;} return refChord;}; \ | 38 | if (cChord == (refChord)) { if (!lookup) {act;} return refChord;}; \ |
40 | } | 39 | } |
41 | 40 | ||
diff --git a/keyboards/gergo/matrix.c b/keyboards/gergo/matrix.c index f659ed52c..080eaea40 100644 --- a/keyboards/gergo/matrix.c +++ b/keyboards/gergo/matrix.c | |||
@@ -38,37 +38,37 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | // MCP Pin Defs | 40 | // MCP Pin Defs |
41 | #define RROW1 (1<<3) | 41 | #define RROW1 (1u<<3) |
42 | #define RROW2 (1<<2) | 42 | #define RROW2 (1u<<2) |
43 | #define RROW3 (1<<1) | 43 | #define RROW3 (1u<<1) |
44 | #define RROW4 (1<<0) | 44 | #define RROW4 (1u<<0) |
45 | #define COL0 (1<<0) | 45 | #define COL0 (1u<<0) |
46 | #define COL1 (1<<1) | 46 | #define COL1 (1u<<1) |
47 | #define COL2 (1<<2) | 47 | #define COL2 (1u<<2) |
48 | #define COL3 (1<<3) | 48 | #define COL3 (1u<<3) |
49 | #define COL4 (1<<4) | 49 | #define COL4 (1u<<4) |
50 | #define COL5 (1<<5) | 50 | #define COL5 (1u<<5) |
51 | #define COL6 (1<<6) | 51 | #define COL6 (1u<<6) |
52 | 52 | ||
53 | // ATmega pin defs | 53 | // ATmega pin defs |
54 | #define ROW1 (1<<6) | 54 | #define ROW1 (1u<<6) |
55 | #define ROW2 (1<<5) | 55 | #define ROW2 (1u<<5) |
56 | #define ROW3 (1<<4) | 56 | #define ROW3 (1u<<4) |
57 | #define ROW4 (1<<1) | 57 | #define ROW4 (1u<<1) |
58 | #define COL7 (1<<0) | 58 | #define COL7 (1u<<0) |
59 | #define COL8 (1<<1) | 59 | #define COL8 (1u<<1) |
60 | #define COL9 (1<<2) | 60 | #define COL9 (1u<<2) |
61 | #define COL10 (1<<3) | 61 | #define COL10 (1u<<3) |
62 | #define COL11 (1<<2) | 62 | #define COL11 (1u<<2) |
63 | #define COL12 (1<<3) | 63 | #define COL12 (1u<<3) |
64 | #define COL13 (1<<6) | 64 | #define COL13 (1u<<6) |
65 | 65 | ||
66 | //Trackball pin defs | 66 | //Trackball pin defs |
67 | #define TRKUP (1<<4) | 67 | #define TRKUP (1u<<4) |
68 | #define TRKDN (1<<5) | 68 | #define TRKDN (1u<<5) |
69 | #define TRKLT (1<<6) | 69 | #define TRKLT (1u<<6) |
70 | #define TRKRT (1<<7) | 70 | #define TRKRT (1u<<7) |
71 | #define TRKBTN (1<<6) | 71 | #define TRKBTN (1u<<6) |
72 | 72 | ||
73 | 73 | ||
74 | // Multiple for mouse moves | 74 | // Multiple for mouse moves |
diff --git a/keyboards/omnikeyish/dynamic_macro.c b/keyboards/omnikeyish/dynamic_macro.c index c359b0bdd..9dd034009 100644 --- a/keyboards/omnikeyish/dynamic_macro.c +++ b/keyboards/omnikeyish/dynamic_macro.c | |||
@@ -1,6 +1,8 @@ | |||
1 | #include QMK_KEYBOARD_H | 1 | #include QMK_KEYBOARD_H |
2 | #include <string.h> | 2 | #include <string.h> |
3 | 3 | ||
4 | dynamic_macro_t dynamic_macros[DYNAMIC_MACRO_COUNT]; | ||
5 | |||
4 | void dynamic_macro_init(void) { | 6 | void dynamic_macro_init(void) { |
5 | /* zero out macro blocks */ | 7 | /* zero out macro blocks */ |
6 | memset(&dynamic_macros, 0, DYNAMIC_MACRO_COUNT * sizeof(dynamic_macro_t)); | 8 | memset(&dynamic_macros, 0, DYNAMIC_MACRO_COUNT * sizeof(dynamic_macro_t)); |
diff --git a/keyboards/omnikeyish/dynamic_macro.h b/keyboards/omnikeyish/dynamic_macro.h index 87665c443..68e129a9e 100644 --- a/keyboards/omnikeyish/dynamic_macro.h +++ b/keyboards/omnikeyish/dynamic_macro.h | |||
@@ -71,8 +71,6 @@ typedef struct { | |||
71 | uint16_t checksum; | 71 | uint16_t checksum; |
72 | } dynamic_macro_t; | 72 | } dynamic_macro_t; |
73 | 73 | ||
74 | dynamic_macro_t dynamic_macros[DYNAMIC_MACRO_COUNT]; | ||
75 | |||
76 | void dynamic_macro_init(void); | 74 | void dynamic_macro_init(void); |
77 | void dynamic_macro_led_blink(void); | 75 | void dynamic_macro_led_blink(void); |
78 | void dynamic_macro_record_start(uint8_t macro_id); | 76 | void dynamic_macro_record_start(uint8_t macro_id); |
diff --git a/quantum/fauxclicky.h b/quantum/fauxclicky.h index bfaacf909..ed54d0edc 100644 --- a/quantum/fauxclicky.h +++ b/quantum/fauxclicky.h | |||
@@ -24,7 +24,7 @@ __attribute__((weak)) float fauxclicky_pressed_note[2] = MUSICAL_NOTE(_D4, 0.25 | |||
24 | __attribute__((weak)) float fauxclicky_released_note[2] = MUSICAL_NOTE(_C4, 0.125); | 24 | __attribute__((weak)) float fauxclicky_released_note[2] = MUSICAL_NOTE(_C4, 0.125); |
25 | __attribute__((weak)) float fauxclicky_beep_note[2] = MUSICAL_NOTE(_C4, 0.25); | 25 | __attribute__((weak)) float fauxclicky_beep_note[2] = MUSICAL_NOTE(_C4, 0.25); |
26 | 26 | ||
27 | bool fauxclicky_enabled; | 27 | extern bool fauxclicky_enabled; |
28 | 28 | ||
29 | // | 29 | // |
30 | // tempo in BPM | 30 | // tempo in BPM |