diff options
Diffstat (limited to 'keyboards/hhkb')
-rw-r--r-- | keyboards/hhkb/ansi/post_rules.mk | 18 | ||||
-rw-r--r-- | keyboards/hhkb/ansi/rules.mk | 20 | ||||
-rw-r--r-- | keyboards/hhkb/jp/post_rules.mk | 18 | ||||
-rw-r--r-- | keyboards/hhkb/jp/rules.mk | 20 | ||||
-rw-r--r-- | keyboards/hhkb/rn42/battery.h | 5 | ||||
-rw-r--r-- | keyboards/hhkb/rn42/rn42.h | 5 | ||||
-rw-r--r-- | keyboards/hhkb/rn42/rn42_task.h | 5 |
7 files changed, 39 insertions, 52 deletions
diff --git a/keyboards/hhkb/ansi/post_rules.mk b/keyboards/hhkb/ansi/post_rules.mk new file mode 100644 index 000000000..bc6ad5cd4 --- /dev/null +++ b/keyboards/hhkb/ansi/post_rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | ifeq ($(strip $(HHKB_RN42_ENABLE)), yes) | ||
2 | |||
3 | OPT_DEFS += -DHHKB_RN42_ENABLE | ||
4 | |||
5 | # Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT | ||
6 | # HHKB Alt controller. | ||
7 | RN42_DIR = ../rn42 | ||
8 | |||
9 | SRC += serial_uart.c \ | ||
10 | ../rn42/suart.S \ | ||
11 | ../rn42/rn42.c \ | ||
12 | ../rn42/rn42_task.c \ | ||
13 | ../rn42/battery.c \ | ||
14 | ../rn42/main.c | ||
15 | |||
16 | VPATH += $(RN42_DIR) | ||
17 | |||
18 | endif | ||
diff --git a/keyboards/hhkb/ansi/rules.mk b/keyboards/hhkb/ansi/rules.mk index 3f60f47d7..c59ee34f9 100644 --- a/keyboards/hhkb/ansi/rules.mk +++ b/keyboards/hhkb/ansi/rules.mk | |||
@@ -32,26 +32,6 @@ MIDI_ENABLE = no # MIDI support | |||
32 | # project specific files | 32 | # project specific files |
33 | SRC = matrix.c | 33 | SRC = matrix.c |
34 | 34 | ||
35 | ifeq ($(strip $(HHKB_RN42_ENABLE)), yes) | ||
36 | |||
37 | OPT_DEFS += -DHHKB_RN42_ENABLE | ||
38 | |||
39 | # Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT | ||
40 | # HHKB Alt controller. | ||
41 | RN42_DIR = ../rn42 | ||
42 | |||
43 | SRC += serial_uart.c \ | ||
44 | ../rn42/suart.S \ | ||
45 | ../rn42/rn42.c \ | ||
46 | ../rn42/rn42_task.c \ | ||
47 | ../rn42/battery.c \ | ||
48 | ../rn42/main.c | ||
49 | |||
50 | VPATH += $(RN42_DIR) | ||
51 | |||
52 | endif | ||
53 | |||
54 | |||
55 | # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION | 35 | # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION |
56 | # debug-on: all | 36 | # debug-on: all |
57 | 37 | ||
diff --git a/keyboards/hhkb/jp/post_rules.mk b/keyboards/hhkb/jp/post_rules.mk new file mode 100644 index 000000000..bc6ad5cd4 --- /dev/null +++ b/keyboards/hhkb/jp/post_rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | ifeq ($(strip $(HHKB_RN42_ENABLE)), yes) | ||
2 | |||
3 | OPT_DEFS += -DHHKB_RN42_ENABLE | ||
4 | |||
5 | # Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT | ||
6 | # HHKB Alt controller. | ||
7 | RN42_DIR = ../rn42 | ||
8 | |||
9 | SRC += serial_uart.c \ | ||
10 | ../rn42/suart.S \ | ||
11 | ../rn42/rn42.c \ | ||
12 | ../rn42/rn42_task.c \ | ||
13 | ../rn42/battery.c \ | ||
14 | ../rn42/main.c | ||
15 | |||
16 | VPATH += $(RN42_DIR) | ||
17 | |||
18 | endif | ||
diff --git a/keyboards/hhkb/jp/rules.mk b/keyboards/hhkb/jp/rules.mk index dda7ceb07..3c66ff500 100644 --- a/keyboards/hhkb/jp/rules.mk +++ b/keyboards/hhkb/jp/rules.mk | |||
@@ -32,26 +32,6 @@ MIDI_ENABLE = no # MIDI support | |||
32 | # project specific files | 32 | # project specific files |
33 | SRC = matrix.c | 33 | SRC = matrix.c |
34 | 34 | ||
35 | ifeq ($(strip $(HHKB_RN42_ENABLE)), yes) | ||
36 | |||
37 | OPT_DEFS += -DHHKB_RN42_ENABLE | ||
38 | |||
39 | # Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT | ||
40 | # HHKB Alt controller. | ||
41 | RN42_DIR = ../rn42 | ||
42 | |||
43 | SRC += serial_uart.c \ | ||
44 | ../rn42/suart.S \ | ||
45 | ../rn42/rn42.c \ | ||
46 | ../rn42/rn42_task.c \ | ||
47 | ../rn42/battery.c \ | ||
48 | ../rn42/main.c | ||
49 | |||
50 | VPATH += $(RN42_DIR) | ||
51 | |||
52 | endif | ||
53 | |||
54 | |||
55 | # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION | 35 | # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION |
56 | # debug-on: all | 36 | # debug-on: all |
57 | 37 | ||
diff --git a/keyboards/hhkb/rn42/battery.h b/keyboards/hhkb/rn42/battery.h index 180d4dcfa..c7f96d09a 100644 --- a/keyboards/hhkb/rn42/battery.h +++ b/keyboards/hhkb/rn42/battery.h | |||
@@ -1,5 +1,4 @@ | |||
1 | #ifndef POWER_H | 1 | #pragma once |
2 | #define POWER_H | ||
3 | 2 | ||
4 | #include <stdint.h> | 3 | #include <stdint.h> |
5 | #include <stdbool.h> | 4 | #include <stdbool.h> |
@@ -31,5 +30,3 @@ battery_status_t battery_status(void); | |||
31 | // ADC offset:16, resolution:5mV | 30 | // ADC offset:16, resolution:5mV |
32 | #define BATTERY_ADC_OFFSET 16 | 31 | #define BATTERY_ADC_OFFSET 16 |
33 | #define BATTERY_ADC_RESOLUTION 5 | 32 | #define BATTERY_ADC_RESOLUTION 5 |
34 | |||
35 | #endif | ||
diff --git a/keyboards/hhkb/rn42/rn42.h b/keyboards/hhkb/rn42/rn42.h index dee214cc8..76bcef99b 100644 --- a/keyboards/hhkb/rn42/rn42.h +++ b/keyboards/hhkb/rn42/rn42.h | |||
@@ -1,5 +1,4 @@ | |||
1 | #ifndef RN42_H | 1 | #pragma once |
2 | #define RN42_H | ||
3 | 2 | ||
4 | #include <stdbool.h> | 3 | #include <stdbool.h> |
5 | #include "host_driver.h" | 4 | #include "host_driver.h" |
@@ -26,5 +25,3 @@ void rn42_send_str(const char *str); | |||
26 | void rn42_print_response(void); | 25 | void rn42_print_response(void); |
27 | #define SEND_STR(str) rn42_send_str(PSTR(str)) | 26 | #define SEND_STR(str) rn42_send_str(PSTR(str)) |
28 | #define SEND_COMMAND(cmd) rn42_send_command(PSTR(cmd)) | 27 | #define SEND_COMMAND(cmd) rn42_send_command(PSTR(cmd)) |
29 | |||
30 | #endif | ||
diff --git a/keyboards/hhkb/rn42/rn42_task.h b/keyboards/hhkb/rn42/rn42_task.h index ee00669ee..05e80e9be 100644 --- a/keyboards/hhkb/rn42/rn42_task.h +++ b/keyboards/hhkb/rn42/rn42_task.h | |||
@@ -1,5 +1,4 @@ | |||
1 | #ifndef RN42_TASK_H | 1 | #pragma once |
2 | #define RN42_TASK_H | ||
3 | 2 | ||
4 | #include <stdbool.h> | 3 | #include <stdbool.h> |
5 | #include "rn42.h" | 4 | #include "rn42.h" |
@@ -10,5 +9,3 @@ bool rn42_nkro_last; | |||
10 | 9 | ||
11 | void rn42_task_init(void); | 10 | void rn42_task_init(void); |
12 | void rn42_task(void); | 11 | void rn42_task(void); |
13 | |||
14 | #endif | ||