diff options
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r-- | tmk_core/protocol/adb.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/chibios/usb_driver.h | 43 | ||||
-rw-r--r-- | tmk_core/protocol/chibios/usb_main.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/ibm4704.h | 6 | ||||
-rw-r--r-- | tmk_core/protocol/lufa/lufa.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/m0110.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/midi/Config/LUFAConfig.h | 4 | ||||
-rw-r--r-- | tmk_core/protocol/midi/bytequeue/bytequeue.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/midi/bytequeue/interrupt_setting.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/midi/midi.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/midi/midi_device.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/midi/midi_function_types.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/midi/sysex_tools.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/news.h | 6 | ||||
-rw-r--r-- | tmk_core/protocol/next_kbd.h | 11 | ||||
-rw-r--r-- | tmk_core/protocol/ps2.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/ps2_io.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/ps2_mouse.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/serial_mouse.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/usb_descriptor.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/xt.h | 5 |
21 files changed, 46 insertions, 104 deletions
diff --git a/tmk_core/protocol/adb.h b/tmk_core/protocol/adb.h index 7d37485fc..34cbcf769 100644 --- a/tmk_core/protocol/adb.h +++ b/tmk_core/protocol/adb.h | |||
@@ -35,8 +35,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |||
35 | POSSIBILITY OF SUCH DAMAGE. | 35 | POSSIBILITY OF SUCH DAMAGE. |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #ifndef ADB_H | 38 | #pragma once |
39 | #define ADB_H | ||
40 | 39 | ||
41 | #include <stdint.h> | 40 | #include <stdint.h> |
42 | #include <stdbool.h> | 41 | #include <stdbool.h> |
@@ -57,5 +56,3 @@ void adb_host_listen(uint8_t cmd, uint8_t data_h, uint8_t data_l); | |||
57 | void adb_host_kbd_led(uint8_t led); | 56 | void adb_host_kbd_led(uint8_t led); |
58 | void adb_mouse_task(void); | 57 | void adb_mouse_task(void); |
59 | void adb_mouse_init(void); | 58 | void adb_mouse_init(void); |
60 | |||
61 | #endif | ||
diff --git a/tmk_core/protocol/chibios/usb_driver.h b/tmk_core/protocol/chibios/usb_driver.h index 6d71bcec4..f94387deb 100644 --- a/tmk_core/protocol/chibios/usb_driver.h +++ b/tmk_core/protocol/chibios/usb_driver.h | |||
@@ -22,10 +22,9 @@ | |||
22 | * @{ | 22 | * @{ |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef USB_DRIVER_H | 25 | #pragma once |
26 | # define USB_DRIVER_H | ||
27 | 26 | ||
28 | # include <hal_usb_cdc.h> | 27 | #include <hal_usb_cdc.h> |
29 | 28 | ||
30 | /*===========================================================================*/ | 29 | /*===========================================================================*/ |
31 | /* Driver constants. */ | 30 | /* Driver constants. */ |
@@ -35,9 +34,9 @@ | |||
35 | /* Derived constants and error checks. */ | 34 | /* Derived constants and error checks. */ |
36 | /*===========================================================================*/ | 35 | /*===========================================================================*/ |
37 | 36 | ||
38 | # if HAL_USE_USB == FALSE | 37 | #if HAL_USE_USB == FALSE |
39 | # error "The USB Driver requires HAL_USE_USB" | 38 | # error "The USB Driver requires HAL_USE_USB" |
40 | # endif | 39 | #endif |
41 | 40 | ||
42 | /*===========================================================================*/ | 41 | /*===========================================================================*/ |
43 | /* Driver data structures and types. */ | 42 | /* Driver data structures and types. */ |
@@ -112,21 +111,21 @@ typedef struct { | |||
112 | /** | 111 | /** |
113 | * @brief @p SerialDriver specific data. | 112 | * @brief @p SerialDriver specific data. |
114 | */ | 113 | */ |
115 | # define _qmk_usb_driver_data \ | 114 | #define _qmk_usb_driver_data \ |
116 | _base_asynchronous_channel_data /* Driver state.*/ \ | 115 | _base_asynchronous_channel_data /* Driver state.*/ \ |
117 | qmkusbstate_t state; \ | 116 | qmkusbstate_t state; \ |
118 | /* Input buffers queue.*/ \ | 117 | /* Input buffers queue.*/ \ |
119 | input_buffers_queue_t ibqueue; \ | 118 | input_buffers_queue_t ibqueue; \ |
120 | /* Output queue.*/ \ | 119 | /* Output queue.*/ \ |
121 | output_buffers_queue_t obqueue; \ | 120 | output_buffers_queue_t obqueue; \ |
122 | /* End of the mandatory fields.*/ \ | 121 | /* End of the mandatory fields.*/ \ |
123 | /* Current configuration data.*/ \ | 122 | /* Current configuration data.*/ \ |
124 | const QMKUSBConfig *config; | 123 | const QMKUSBConfig *config; |
125 | 124 | ||
126 | /** | 125 | /** |
127 | * @brief @p SerialUSBDriver specific methods. | 126 | * @brief @p SerialUSBDriver specific methods. |
128 | */ | 127 | */ |
129 | # define _qmk_usb_driver_methods _base_asynchronous_channel_methods | 128 | #define _qmk_usb_driver_methods _base_asynchronous_channel_methods |
130 | 129 | ||
131 | /** | 130 | /** |
132 | * @extends BaseAsynchronousChannelVMT | 131 | * @extends BaseAsynchronousChannelVMT |
@@ -158,9 +157,9 @@ struct QMKUSBDriver { | |||
158 | /* External declarations. */ | 157 | /* External declarations. */ |
159 | /*===========================================================================*/ | 158 | /*===========================================================================*/ |
160 | 159 | ||
161 | # ifdef __cplusplus | 160 | #ifdef __cplusplus |
162 | extern "C" { | 161 | extern "C" { |
163 | # endif | 162 | #endif |
164 | void qmkusbInit(void); | 163 | void qmkusbInit(void); |
165 | void qmkusbObjectInit(QMKUSBDriver *qmkusbp, const QMKUSBConfig *config); | 164 | void qmkusbObjectInit(QMKUSBDriver *qmkusbp, const QMKUSBConfig *config); |
166 | void qmkusbStart(QMKUSBDriver *qmkusbp, const QMKUSBConfig *config); | 165 | void qmkusbStart(QMKUSBDriver *qmkusbp, const QMKUSBConfig *config); |
@@ -173,10 +172,8 @@ void qmkusbSOFHookI(QMKUSBDriver *qmkusbp); | |||
173 | void qmkusbDataTransmitted(USBDriver *usbp, usbep_t ep); | 172 | void qmkusbDataTransmitted(USBDriver *usbp, usbep_t ep); |
174 | void qmkusbDataReceived(USBDriver *usbp, usbep_t ep); | 173 | void qmkusbDataReceived(USBDriver *usbp, usbep_t ep); |
175 | void qmkusbInterruptTransmitted(USBDriver *usbp, usbep_t ep); | 174 | void qmkusbInterruptTransmitted(USBDriver *usbp, usbep_t ep); |
176 | # ifdef __cplusplus | 175 | #ifdef __cplusplus |
177 | } | 176 | } |
178 | # endif | 177 | #endif |
179 | |||
180 | #endif /* USB_DRIVER_H */ | ||
181 | 178 | ||
182 | /** @} */ | 179 | /** @} */ |
diff --git a/tmk_core/protocol/chibios/usb_main.h b/tmk_core/protocol/chibios/usb_main.h index 1381d0765..eaa08d8f7 100644 --- a/tmk_core/protocol/chibios/usb_main.h +++ b/tmk_core/protocol/chibios/usb_main.h | |||
@@ -15,8 +15,7 @@ | |||
15 | * GPL v2 or later. | 15 | * GPL v2 or later. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #ifndef _USB_MAIN_H_ | 18 | #pragma once |
19 | #define _USB_MAIN_H_ | ||
20 | 19 | ||
21 | // TESTING | 20 | // TESTING |
22 | // extern uint8_t blinkLed; | 21 | // extern uint8_t blinkLed; |
@@ -89,5 +88,3 @@ int8_t sendchar(uint8_t c); | |||
89 | void console_flush_output(void); | 88 | void console_flush_output(void); |
90 | 89 | ||
91 | #endif /* CONSOLE_ENABLE */ | 90 | #endif /* CONSOLE_ENABLE */ |
92 | |||
93 | #endif /* _USB_MAIN_H_ */ | ||
diff --git a/tmk_core/protocol/ibm4704.h b/tmk_core/protocol/ibm4704.h index cc2418ee6..4f88d148b 100644 --- a/tmk_core/protocol/ibm4704.h +++ b/tmk_core/protocol/ibm4704.h | |||
@@ -1,8 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | Copyright 2014 Jun WAKO <wakojun@gmail.com> | 2 | Copyright 2014 Jun WAKO <wakojun@gmail.com> |
3 | */ | 3 | */ |
4 | #ifndef IBM4704_H | 4 | |
5 | #define IBM4704_H | 5 | #pragma once |
6 | 6 | ||
7 | #define IBM4704_ERR_NONE 0 | 7 | #define IBM4704_ERR_NONE 0 |
8 | #define IBM4704_ERR_PARITY 0x70 | 8 | #define IBM4704_ERR_PARITY 0x70 |
@@ -101,5 +101,3 @@ static inline void inhibit(void) { | |||
101 | clock_hi(); | 101 | clock_hi(); |
102 | data_lo(); | 102 | data_lo(); |
103 | } | 103 | } |
104 | |||
105 | #endif | ||
diff --git a/tmk_core/protocol/lufa/lufa.h b/tmk_core/protocol/lufa/lufa.h index 71fd7aad8..348a84c03 100644 --- a/tmk_core/protocol/lufa/lufa.h +++ b/tmk_core/protocol/lufa/lufa.h | |||
@@ -36,8 +36,7 @@ | |||
36 | this software. | 36 | this software. |
37 | */ | 37 | */ |
38 | 38 | ||
39 | #ifndef _LUFA_H_ | 39 | #pragma once |
40 | #define _LUFA_H_ | ||
41 | 40 | ||
42 | #include <avr/io.h> | 41 | #include <avr/io.h> |
43 | #include <avr/wdt.h> | 42 | #include <avr/wdt.h> |
@@ -68,5 +67,3 @@ extern host_driver_t lufa_driver; | |||
68 | // The header and terminator are not stored to save a few bytes of precious ram | 67 | // The header and terminator are not stored to save a few bytes of precious ram |
69 | # define MIDI_SYSEX_BUFFER (API_SYSEX_MAX_SIZE + API_SYSEX_MAX_SIZE / 7 + (API_SYSEX_MAX_SIZE % 7 ? 1 : 0)) | 68 | # define MIDI_SYSEX_BUFFER (API_SYSEX_MAX_SIZE + API_SYSEX_MAX_SIZE / 7 + (API_SYSEX_MAX_SIZE % 7 ? 1 : 0)) |
70 | #endif | 69 | #endif |
71 | |||
72 | #endif | ||
diff --git a/tmk_core/protocol/m0110.h b/tmk_core/protocol/m0110.h index 3f9686b0d..63ff3e90e 100644 --- a/tmk_core/protocol/m0110.h +++ b/tmk_core/protocol/m0110.h | |||
@@ -35,8 +35,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |||
35 | POSSIBILITY OF SUCH DAMAGE. | 35 | POSSIBILITY OF SUCH DAMAGE. |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #ifndef M0110_H | 38 | #pragma once |
39 | #define M0110_H | ||
40 | 39 | ||
41 | /* port settings for clock and data line */ | 40 | /* port settings for clock and data line */ |
42 | #if !(defined(M0110_CLOCK_PORT) && defined(M0110_CLOCK_PIN) && defined(M0110_CLOCK_DDR) && defined(M0110_CLOCK_BIT)) | 41 | #if !(defined(M0110_CLOCK_PORT) && defined(M0110_CLOCK_PIN) && defined(M0110_CLOCK_DDR) && defined(M0110_CLOCK_BIT)) |
@@ -80,5 +79,3 @@ uint8_t m0110_recv(void); | |||
80 | uint8_t m0110_recv_key(void); | 79 | uint8_t m0110_recv_key(void); |
81 | uint8_t m0110_inquiry(void); | 80 | uint8_t m0110_inquiry(void); |
82 | uint8_t m0110_instant(void); | 81 | uint8_t m0110_instant(void); |
83 | |||
84 | #endif | ||
diff --git a/tmk_core/protocol/midi/Config/LUFAConfig.h b/tmk_core/protocol/midi/Config/LUFAConfig.h index b346c05bd..dead96de7 100644 --- a/tmk_core/protocol/midi/Config/LUFAConfig.h +++ b/tmk_core/protocol/midi/Config/LUFAConfig.h | |||
@@ -39,8 +39,7 @@ | |||
39 | * manual section "Summary of Compile Tokens". | 39 | * manual section "Summary of Compile Tokens". |
40 | */ | 40 | */ |
41 | 41 | ||
42 | #ifndef _LUFA_CONFIG_H_ | 42 | #pragma once |
43 | #define _LUFA_CONFIG_H_ | ||
44 | 43 | ||
45 | #if (ARCH == ARCH_AVR8) | 44 | #if (ARCH == ARCH_AVR8) |
46 | 45 | ||
@@ -90,4 +89,3 @@ | |||
90 | # error Unsupported architecture for this LUFA configuration file. | 89 | # error Unsupported architecture for this LUFA configuration file. |
91 | 90 | ||
92 | #endif | 91 | #endif |
93 | #endif | ||
diff --git a/tmk_core/protocol/midi/bytequeue/bytequeue.h b/tmk_core/protocol/midi/bytequeue/bytequeue.h index 33fb63a8c..29d15abbd 100644 --- a/tmk_core/protocol/midi/bytequeue/bytequeue.h +++ b/tmk_core/protocol/midi/bytequeue/bytequeue.h | |||
@@ -17,8 +17,7 @@ | |||
17 | // You should have received a copy of the GNU General Public License | 17 | // You should have received a copy of the GNU General Public License |
18 | // along with avr-bytequeue. If not, see <http://www.gnu.org/licenses/>. | 18 | // along with avr-bytequeue. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 | ||
20 | #ifndef BYTEQUEUE_H | 20 | #pragma once |
21 | #define BYTEQUEUE_H | ||
22 | 21 | ||
23 | #ifdef __cplusplus | 22 | #ifdef __cplusplus |
24 | extern "C" { | 23 | extern "C" { |
@@ -54,5 +53,3 @@ void bytequeue_remove(byteQueue_t* queue, byteQueueIndex_t numToRemove); | |||
54 | #ifdef __cplusplus | 53 | #ifdef __cplusplus |
55 | } | 54 | } |
56 | #endif | 55 | #endif |
57 | |||
58 | #endif | ||
diff --git a/tmk_core/protocol/midi/bytequeue/interrupt_setting.h b/tmk_core/protocol/midi/bytequeue/interrupt_setting.h index 788f75d79..78294f076 100644 --- a/tmk_core/protocol/midi/bytequeue/interrupt_setting.h +++ b/tmk_core/protocol/midi/bytequeue/interrupt_setting.h | |||
@@ -16,8 +16,7 @@ | |||
16 | // You should have received a copy of the GNU General Public License | 16 | // You should have received a copy of the GNU General Public License |
17 | // along with avr-bytequeue. If not, see <http://www.gnu.org/licenses/>. | 17 | // along with avr-bytequeue. If not, see <http://www.gnu.org/licenses/>. |
18 | 18 | ||
19 | #ifndef INTERRUPT_SETTING_H | 19 | #pragma once |
20 | #define INTERRUPT_SETTING_H | ||
21 | 20 | ||
22 | #ifdef __cplusplus | 21 | #ifdef __cplusplus |
23 | extern "C" { | 22 | extern "C" { |
@@ -34,5 +33,3 @@ void restore_interrupt_setting(interrupt_setting_t setting); | |||
34 | #ifdef __cplusplus | 33 | #ifdef __cplusplus |
35 | } | 34 | } |
36 | #endif | 35 | #endif |
37 | |||
38 | #endif | ||
diff --git a/tmk_core/protocol/midi/midi.h b/tmk_core/protocol/midi/midi.h index 07d8cebc1..75f3b13b0 100644 --- a/tmk_core/protocol/midi/midi.h +++ b/tmk_core/protocol/midi/midi.h | |||
@@ -25,8 +25,7 @@ | |||
25 | * | 25 | * |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #ifndef XNOR_MIDI_H | 28 | #pragma once |
29 | #define XNOR_MIDI_H | ||
30 | 29 | ||
31 | #ifdef __cplusplus | 30 | #ifdef __cplusplus |
32 | extern "C" { | 31 | extern "C" { |
@@ -486,5 +485,3 @@ midi_packet_length_t midi_packet_length(uint8_t status); | |||
486 | #ifdef __cplusplus | 485 | #ifdef __cplusplus |
487 | } | 486 | } |
488 | #endif | 487 | #endif |
489 | |||
490 | #endif | ||
diff --git a/tmk_core/protocol/midi/midi_device.h b/tmk_core/protocol/midi/midi_device.h index 693d81a8e..79e8f7a93 100644 --- a/tmk_core/protocol/midi/midi_device.h +++ b/tmk_core/protocol/midi/midi_device.h | |||
@@ -21,8 +21,7 @@ | |||
21 | * @brief Device implementation functions | 21 | * @brief Device implementation functions |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifndef MIDI_DEVICE_H | 24 | #pragma once |
25 | #define MIDI_DEVICE_H | ||
26 | 25 | ||
27 | #ifdef __cplusplus | 26 | #ifdef __cplusplus |
28 | extern "C" { | 27 | extern "C" { |
@@ -147,5 +146,3 @@ void midi_device_set_pre_input_process_func(MidiDevice* device, midi_no_byte_fun | |||
147 | #ifdef __cplusplus | 146 | #ifdef __cplusplus |
148 | } | 147 | } |
149 | #endif | 148 | #endif |
150 | |||
151 | #endif | ||
diff --git a/tmk_core/protocol/midi/midi_function_types.h b/tmk_core/protocol/midi/midi_function_types.h index 761e88117..6f98a7298 100644 --- a/tmk_core/protocol/midi/midi_function_types.h +++ b/tmk_core/protocol/midi/midi_function_types.h | |||
@@ -21,8 +21,7 @@ | |||
21 | * @brief Function signature definitions | 21 | * @brief Function signature definitions |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifndef MIDI_FUNCTION_TYPES_H | 24 | #pragma once |
25 | #define MIDI_FUNCTION_TYPES_H | ||
26 | 25 | ||
27 | #ifdef __cplusplus | 26 | #ifdef __cplusplus |
28 | extern "C" { | 27 | extern "C" { |
@@ -46,5 +45,3 @@ typedef void (*midi_sysex_func_t)(MidiDevice *device, uint16_t start_byte, uint8 | |||
46 | #ifdef __cplusplus | 45 | #ifdef __cplusplus |
47 | } | 46 | } |
48 | #endif | 47 | #endif |
49 | |||
50 | #endif | ||
diff --git a/tmk_core/protocol/midi/sysex_tools.h b/tmk_core/protocol/midi/sysex_tools.h index 454a92ea5..7d7f10d24 100644 --- a/tmk_core/protocol/midi/sysex_tools.h +++ b/tmk_core/protocol/midi/sysex_tools.h | |||
@@ -16,8 +16,7 @@ | |||
16 | // You should have received a copy of the GNU General Public License | 16 | // You should have received a copy of the GNU General Public License |
17 | // along with avr-midi. If not, see <http://www.gnu.org/licenses/>. | 17 | // along with avr-midi. If not, see <http://www.gnu.org/licenses/>. |
18 | 18 | ||
19 | #ifndef SYSEX_TOOLS_H | 19 | #pragma once |
20 | #define SYSEX_TOOLS_H | ||
21 | 20 | ||
22 | #ifdef __cplusplus | 21 | #ifdef __cplusplus |
23 | extern "C" { | 22 | extern "C" { |
@@ -91,5 +90,3 @@ uint16_t sysex_decode(uint8_t *decoded, const uint8_t *source, uint16_t length); | |||
91 | #ifdef __cplusplus | 90 | #ifdef __cplusplus |
92 | } | 91 | } |
93 | #endif | 92 | #endif |
94 | |||
95 | #endif | ||
diff --git a/tmk_core/protocol/news.h b/tmk_core/protocol/news.h index d0c4bc6a4..327a13856 100644 --- a/tmk_core/protocol/news.h +++ b/tmk_core/protocol/news.h | |||
@@ -35,8 +35,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |||
35 | POSSIBILITY OF SUCH DAMAGE. | 35 | POSSIBILITY OF SUCH DAMAGE. |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #ifndef NEWS_H | 38 | #pragma once |
39 | #define NEWS_H | 39 | |
40 | /* | 40 | /* |
41 | * Primitive PS/2 Library for AVR | 41 | * Primitive PS/2 Library for AVR |
42 | */ | 42 | */ |
@@ -46,5 +46,3 @@ void news_init(void); | |||
46 | uint8_t news_recv(void); | 46 | uint8_t news_recv(void); |
47 | 47 | ||
48 | /* device role */ | 48 | /* device role */ |
49 | |||
50 | #endif | ||
diff --git a/tmk_core/protocol/next_kbd.h b/tmk_core/protocol/next_kbd.h index bff7a474d..1249ebf39 100644 --- a/tmk_core/protocol/next_kbd.h +++ b/tmk_core/protocol/next_kbd.h | |||
@@ -45,13 +45,12 @@ POSSIBILITY OF SUCH DAMAGE. | |||
45 | 45 | ||
46 | */ | 46 | */ |
47 | 47 | ||
48 | #include <stdbool.h> | 48 | #pragma once |
49 | 49 | ||
50 | #ifndef NEXT_KBD_H | 50 | #include <stdbool.h> |
51 | # define NEXT_KBD_H | ||
52 | 51 | ||
53 | # define NEXT_KBD_KMBUS_IDLE 0x300600 | 52 | #define NEXT_KBD_KMBUS_IDLE 0x300600 |
54 | # define NEXT_KBD_TIMING 50 | 53 | #define NEXT_KBD_TIMING 50 |
55 | 54 | ||
56 | extern uint8_t next_kbd_error; | 55 | extern uint8_t next_kbd_error; |
57 | 56 | ||
@@ -59,5 +58,3 @@ extern uint8_t next_kbd_error; | |||
59 | void next_kbd_init(void); | 58 | void next_kbd_init(void); |
60 | void next_kbd_set_leds(bool left, bool right); | 59 | void next_kbd_set_leds(bool left, bool right); |
61 | uint32_t next_kbd_recv(void); | 60 | uint32_t next_kbd_recv(void); |
62 | |||
63 | #endif | ||
diff --git a/tmk_core/protocol/ps2.h b/tmk_core/protocol/ps2.h index e32cc9603..f12319285 100644 --- a/tmk_core/protocol/ps2.h +++ b/tmk_core/protocol/ps2.h | |||
@@ -35,8 +35,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |||
35 | POSSIBILITY OF SUCH DAMAGE. | 35 | POSSIBILITY OF SUCH DAMAGE. |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #ifndef PS2_H | 38 | #pragma once |
39 | #define PS2_H | ||
40 | 39 | ||
41 | #include <stdbool.h> | 40 | #include <stdbool.h> |
42 | #include "wait.h" | 41 | #include "wait.h" |
@@ -138,5 +137,3 @@ static inline void inhibit(void) { | |||
138 | clock_lo(); | 137 | clock_lo(); |
139 | data_hi(); | 138 | data_hi(); |
140 | } | 139 | } |
141 | |||
142 | #endif | ||
diff --git a/tmk_core/protocol/ps2_io.h b/tmk_core/protocol/ps2_io.h index 35e26561d..de93cb7a3 100644 --- a/tmk_core/protocol/ps2_io.h +++ b/tmk_core/protocol/ps2_io.h | |||
@@ -1,5 +1,4 @@ | |||
1 | #ifndef PS2_IO_H | 1 | #pragma once |
2 | #define PS2_IO_H | ||
3 | 2 | ||
4 | void clock_init(void); | 3 | void clock_init(void); |
5 | void clock_lo(void); | 4 | void clock_lo(void); |
@@ -10,5 +9,3 @@ void data_init(void); | |||
10 | void data_lo(void); | 9 | void data_lo(void); |
11 | void data_hi(void); | 10 | void data_hi(void); |
12 | bool data_in(void); | 11 | bool data_in(void); |
13 | |||
14 | #endif | ||
diff --git a/tmk_core/protocol/ps2_mouse.h b/tmk_core/protocol/ps2_mouse.h index d743fb3d8..c97c6c893 100644 --- a/tmk_core/protocol/ps2_mouse.h +++ b/tmk_core/protocol/ps2_mouse.h | |||
@@ -15,8 +15,7 @@ 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 | */ | 16 | */ |
17 | 17 | ||
18 | #ifndef PS2_MOUSE_H | 18 | #pragma once |
19 | #define PS2_MOUSE_H | ||
20 | 19 | ||
21 | #include <stdbool.h> | 20 | #include <stdbool.h> |
22 | #include "debug.h" | 21 | #include "debug.h" |
@@ -176,5 +175,3 @@ void ps2_mouse_set_resolution(ps2_mouse_resolution_t resolution); | |||
176 | void ps2_mouse_set_sample_rate(ps2_mouse_sample_rate_t sample_rate); | 175 | void ps2_mouse_set_sample_rate(ps2_mouse_sample_rate_t sample_rate); |
177 | 176 | ||
178 | void ps2_mouse_moved_user(report_mouse_t *mouse_report); | 177 | void ps2_mouse_moved_user(report_mouse_t *mouse_report); |
179 | |||
180 | #endif | ||
diff --git a/tmk_core/protocol/serial_mouse.h b/tmk_core/protocol/serial_mouse.h index b10315f36..cb83cf4f6 100644 --- a/tmk_core/protocol/serial_mouse.h +++ b/tmk_core/protocol/serial_mouse.h | |||
@@ -15,8 +15,7 @@ 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 | */ | 16 | */ |
17 | 17 | ||
18 | #ifndef SERIAL_MOUSE_H | 18 | #pragma once |
19 | #define SERIAL_MOUSE_H | ||
20 | 19 | ||
21 | #include <stdint.h> | 20 | #include <stdint.h> |
22 | 21 | ||
@@ -28,5 +27,3 @@ static inline uint8_t serial_mouse_init(void) { | |||
28 | } | 27 | } |
29 | 28 | ||
30 | void serial_mouse_task(void); | 29 | void serial_mouse_task(void); |
31 | |||
32 | #endif | ||
diff --git a/tmk_core/protocol/usb_descriptor.h b/tmk_core/protocol/usb_descriptor.h index 3a7c0bdba..4c6728ebb 100644 --- a/tmk_core/protocol/usb_descriptor.h +++ b/tmk_core/protocol/usb_descriptor.h | |||
@@ -40,8 +40,8 @@ | |||
40 | * | 40 | * |
41 | * Header file for Descriptors.c. | 41 | * Header file for Descriptors.c. |
42 | */ | 42 | */ |
43 | #ifndef _DESCRIPTORS_H_ | 43 | |
44 | #define _DESCRIPTORS_H_ | 44 | #pragma once |
45 | 45 | ||
46 | #include <LUFA/Drivers/USB/USB.h> | 46 | #include <LUFA/Drivers/USB/USB.h> |
47 | 47 | ||
@@ -286,4 +286,3 @@ enum usb_endpoints { | |||
286 | #define JOYSTICK_EPSIZE 8 | 286 | #define JOYSTICK_EPSIZE 8 |
287 | 287 | ||
288 | uint16_t get_usb_descriptor(const uint16_t wValue, const uint16_t wIndex, const void** const DescriptorAddress); | 288 | uint16_t get_usb_descriptor(const uint16_t wValue, const uint16_t wIndex, const void** const DescriptorAddress); |
289 | #endif | ||
diff --git a/tmk_core/protocol/xt.h b/tmk_core/protocol/xt.h index e7e1a13f4..6dc5f19d0 100644 --- a/tmk_core/protocol/xt.h +++ b/tmk_core/protocol/xt.h | |||
@@ -36,8 +36,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |||
36 | POSSIBILITY OF SUCH DAMAGE. | 36 | POSSIBILITY OF SUCH DAMAGE. |
37 | */ | 37 | */ |
38 | 38 | ||
39 | #ifndef XT_H | 39 | #pragma once |
40 | #define XT_H | ||
41 | 40 | ||
42 | #define XT_DATA_IN() \ | 41 | #define XT_DATA_IN() \ |
43 | do { \ | 42 | do { \ |
@@ -69,5 +68,3 @@ POSSIBILITY OF SUCH DAMAGE. | |||
69 | 68 | ||
70 | void xt_host_init(void); | 69 | void xt_host_init(void); |
71 | uint8_t xt_host_recv(void); | 70 | uint8_t xt_host_recv(void); |
72 | |||
73 | #endif | ||