diff options
-rw-r--r-- | common_features.mk | 6 | ||||
-rw-r--r-- | keyboards/ai03/orbit/matrix.h | 3 | ||||
-rw-r--r-- | keyboards/ai03/orbit/transport.h | 2 | ||||
-rw-r--r-- | quantum/bitwise.c (renamed from tmk_core/common/util.c) | 0 | ||||
-rw-r--r-- | quantum/bitwise.h (renamed from tmk_core/common/util.h) | 7 | ||||
-rw-r--r-- | quantum/command.c (renamed from tmk_core/common/command.c) | 0 | ||||
-rw-r--r-- | quantum/command.h (renamed from tmk_core/common/command.h) | 0 | ||||
-rw-r--r-- | quantum/led.h (renamed from tmk_core/common/led.h) | 0 | ||||
-rw-r--r-- | quantum/matrix.h (renamed from tmk_core/common/matrix.h) | 0 | ||||
-rw-r--r-- | quantum/ring_buffer.h (renamed from tmk_core/ring_buffer.h) | 11 | ||||
-rw-r--r-- | quantum/split_common/transport.h | 2 | ||||
-rw-r--r-- | quantum/util.h (renamed from keyboards/converter/adb_usb/led.h) | 33 | ||||
-rw-r--r-- | tmk_core/common.mk | 6 | ||||
-rw-r--r-- | tmk_core/protocol/arm_atsam/md_rgb_matrix.c | 2 |
14 files changed, 22 insertions, 50 deletions
diff --git a/common_features.mk b/common_features.mk index b9cd084d2..f98a788ca 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -17,6 +17,7 @@ SERIAL_PATH := $(QUANTUM_PATH)/serial_link | |||
17 | 17 | ||
18 | QUANTUM_SRC += \ | 18 | QUANTUM_SRC += \ |
19 | $(QUANTUM_DIR)/quantum.c \ | 19 | $(QUANTUM_DIR)/quantum.c \ |
20 | $(QUANTUM_DIR)/bitwise.c \ | ||
20 | $(QUANTUM_DIR)/led.c \ | 21 | $(QUANTUM_DIR)/led.c \ |
21 | $(QUANTUM_DIR)/keymap_common.c \ | 22 | $(QUANTUM_DIR)/keymap_common.c \ |
22 | $(QUANTUM_DIR)/keycode_config.c | 23 | $(QUANTUM_DIR)/keycode_config.c |
@@ -36,6 +37,11 @@ ifeq ($(strip $(API_SYSEX_ENABLE)), yes) | |||
36 | SRC += $(QUANTUM_DIR)/api.c | 37 | SRC += $(QUANTUM_DIR)/api.c |
37 | endif | 38 | endif |
38 | 39 | ||
40 | ifeq ($(strip $(COMMAND_ENABLE)), yes) | ||
41 | SRC += $(QUANTUM_DIR)/command.c | ||
42 | OPT_DEFS += -DCOMMAND_ENABLE | ||
43 | endif | ||
44 | |||
39 | ifeq ($(strip $(AUDIO_ENABLE)), yes) | 45 | ifeq ($(strip $(AUDIO_ENABLE)), yes) |
40 | OPT_DEFS += -DAUDIO_ENABLE | 46 | OPT_DEFS += -DAUDIO_ENABLE |
41 | MUSIC_ENABLE = yes | 47 | MUSIC_ENABLE = yes |
diff --git a/keyboards/ai03/orbit/matrix.h b/keyboards/ai03/orbit/matrix.h deleted file mode 100644 index 664372b76..000000000 --- a/keyboards/ai03/orbit/matrix.h +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "common/matrix.h" | ||
diff --git a/keyboards/ai03/orbit/transport.h b/keyboards/ai03/orbit/transport.h index 67597652f..757eae6f5 100644 --- a/keyboards/ai03/orbit/transport.h +++ b/keyboards/ai03/orbit/transport.h | |||
@@ -1,6 +1,6 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "common/matrix.h" | 3 | #include "matrix.h" |
4 | 4 | ||
5 | #define ROWS_PER_HAND (MATRIX_ROWS/2) | 5 | #define ROWS_PER_HAND (MATRIX_ROWS/2) |
6 | 6 | ||
diff --git a/tmk_core/common/util.c b/quantum/bitwise.c index 861cca005..861cca005 100644 --- a/tmk_core/common/util.c +++ b/quantum/bitwise.c | |||
diff --git a/tmk_core/common/util.h b/quantum/bitwise.h index db57f268c..276bc7437 100644 --- a/tmk_core/common/util.h +++ b/quantum/bitwise.h | |||
@@ -19,13 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
19 | 19 | ||
20 | #include <stdint.h> | 20 | #include <stdint.h> |
21 | 21 | ||
22 | // convert to L string | ||
23 | #define LSTR(s) XLSTR(s) | ||
24 | #define XLSTR(s) L## #s | ||
25 | // convert to string | ||
26 | #define STR(s) XSTR(s) | ||
27 | #define XSTR(s) #s | ||
28 | |||
29 | #ifdef __cplusplus | 22 | #ifdef __cplusplus |
30 | extern "C" { | 23 | extern "C" { |
31 | #endif | 24 | #endif |
diff --git a/tmk_core/common/command.c b/quantum/command.c index 59aa4e4d3..59aa4e4d3 100644 --- a/tmk_core/common/command.c +++ b/quantum/command.c | |||
diff --git a/tmk_core/common/command.h b/quantum/command.h index 4f77be085..4f77be085 100644 --- a/tmk_core/common/command.h +++ b/quantum/command.h | |||
diff --git a/tmk_core/common/led.h b/quantum/led.h index 0fe38ea03..0fe38ea03 100644 --- a/tmk_core/common/led.h +++ b/quantum/led.h | |||
diff --git a/tmk_core/common/matrix.h b/quantum/matrix.h index b570227a3..b570227a3 100644 --- a/tmk_core/common/matrix.h +++ b/quantum/matrix.h | |||
diff --git a/tmk_core/ring_buffer.h b/quantum/ring_buffer.h index 8f887c8f7..284745ca8 100644 --- a/tmk_core/ring_buffer.h +++ b/quantum/ring_buffer.h | |||
@@ -1,14 +1,13 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | /*-------------------------------------------------------------------- | ||
4 | * Ring buffer to store scan codes from keyboard | ||
5 | *------------------------------------------------------------------*/ | ||
6 | #ifndef RBUF_SIZE | ||
7 | # define RBUF_SIZE 32 | ||
8 | #endif | ||
9 | #include <util/atomic.h> | 3 | #include <util/atomic.h> |
10 | #include <stdint.h> | 4 | #include <stdint.h> |
11 | #include <stdbool.h> | 5 | #include <stdbool.h> |
6 | |||
7 | #ifndef RBUF_SIZE | ||
8 | # define RBUF_SIZE 32 | ||
9 | #endif | ||
10 | |||
12 | static uint8_t rbuf[RBUF_SIZE]; | 11 | static uint8_t rbuf[RBUF_SIZE]; |
13 | static uint8_t rbuf_head = 0; | 12 | static uint8_t rbuf_head = 0; |
14 | static uint8_t rbuf_tail = 0; | 13 | static uint8_t rbuf_tail = 0; |
diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h index f3e752bf9..c667bfab8 100644 --- a/quantum/split_common/transport.h +++ b/quantum/split_common/transport.h | |||
@@ -1,6 +1,6 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "common/matrix.h" | 3 | #include "matrix.h" |
4 | 4 | ||
5 | void transport_master_init(void); | 5 | void transport_master_init(void); |
6 | void transport_slave_init(void); | 6 | void transport_slave_init(void); |
diff --git a/keyboards/converter/adb_usb/led.h b/quantum/util.h index b33b6894e..bef3b9abe 100644 --- a/keyboards/converter/adb_usb/led.h +++ b/quantum/util.h | |||
@@ -13,31 +13,14 @@ GNU General Public License for more details. | |||
13 | 13 | ||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License |
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | |||
17 | Ported to QMK by Peter Roe <pete@13bit.me> | ||
18 | */ | 16 | */ |
17 | #pragma once | ||
19 | 18 | ||
20 | #ifndef LED_H | 19 | #include "bitwise.h" |
21 | #define LED_H | ||
22 | #include <stdint.h> | ||
23 | |||
24 | |||
25 | /* keyboard LEDs */ | ||
26 | #define USB_LED_NUM_LOCK 0 | ||
27 | #define USB_LED_CAPS_LOCK 1 | ||
28 | #define USB_LED_SCROLL_LOCK 2 | ||
29 | #define USB_LED_COMPOSE 3 | ||
30 | #define USB_LED_KANA 4 | ||
31 | |||
32 | |||
33 | #ifdef __cplusplus | ||
34 | extern "C" { | ||
35 | #endif | ||
36 | |||
37 | void led_set(uint8_t usb_led); | ||
38 | |||
39 | #ifdef __cplusplus | ||
40 | } | ||
41 | #endif | ||
42 | 20 | ||
43 | #endif | 21 | // convert to L string |
22 | #define LSTR(s) XLSTR(s) | ||
23 | #define XLSTR(s) L## #s | ||
24 | // convert to string | ||
25 | #define STR(s) XSTR(s) | ||
26 | #define XSTR(s) #s | ||
diff --git a/tmk_core/common.mk b/tmk_core/common.mk index fdf2aa097..55af71ed6 100644 --- a/tmk_core/common.mk +++ b/tmk_core/common.mk | |||
@@ -13,7 +13,6 @@ TMK_COMMON_SRC += $(COMMON_DIR)/host.c \ | |||
13 | $(COMMON_DIR)/print.c \ | 13 | $(COMMON_DIR)/print.c \ |
14 | $(COMMON_DIR)/debug.c \ | 14 | $(COMMON_DIR)/debug.c \ |
15 | $(COMMON_DIR)/sendchar_null.c \ | 15 | $(COMMON_DIR)/sendchar_null.c \ |
16 | $(COMMON_DIR)/util.c \ | ||
17 | $(COMMON_DIR)/eeconfig.c \ | 16 | $(COMMON_DIR)/eeconfig.c \ |
18 | $(COMMON_DIR)/report.c \ | 17 | $(COMMON_DIR)/report.c \ |
19 | $(PLATFORM_COMMON_DIR)/suspend.c \ | 18 | $(PLATFORM_COMMON_DIR)/suspend.c \ |
@@ -93,11 +92,6 @@ else | |||
93 | TMK_COMMON_DEFS += -DNO_DEBUG | 92 | TMK_COMMON_DEFS += -DNO_DEBUG |
94 | endif | 93 | endif |
95 | 94 | ||
96 | ifeq ($(strip $(COMMAND_ENABLE)), yes) | ||
97 | TMK_COMMON_SRC += $(COMMON_DIR)/command.c | ||
98 | TMK_COMMON_DEFS += -DCOMMAND_ENABLE | ||
99 | endif | ||
100 | |||
101 | ifeq ($(strip $(NKRO_ENABLE)), yes) | 95 | ifeq ($(strip $(NKRO_ENABLE)), yes) |
102 | ifeq ($(PROTOCOL), VUSB) | 96 | ifeq ($(PROTOCOL), VUSB) |
103 | $(info NKRO is not currently supported on V-USB, and has been disabled.) | 97 | $(info NKRO is not currently supported on V-USB, and has been disabled.) |
diff --git a/tmk_core/protocol/arm_atsam/md_rgb_matrix.c b/tmk_core/protocol/arm_atsam/md_rgb_matrix.c index 439aaf8b3..0ea7e3839 100644 --- a/tmk_core/protocol/arm_atsam/md_rgb_matrix.c +++ b/tmk_core/protocol/arm_atsam/md_rgb_matrix.c | |||
@@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include "arm_atsam_protocol.h" | 18 | #include "arm_atsam_protocol.h" |
19 | #include "tmk_core/common/led.h" | 19 | #include "led.h" |
20 | #include "rgb_matrix.h" | 20 | #include "rgb_matrix.h" |
21 | #include <string.h> | 21 | #include <string.h> |
22 | #include <math.h> | 22 | #include <math.h> |