aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/action.h6
-rw-r--r--tmk_core/common/action_code.h6
-rw-r--r--tmk_core/common/action_layer.h6
-rw-r--r--tmk_core/common/action_macro.h7
-rw-r--r--tmk_core/common/action_tapping.h6
-rw-r--r--tmk_core/common/action_util.h6
-rw-r--r--tmk_core/common/arm_atsam/printf.h5
-rw-r--r--tmk_core/common/avr/suspend_avr.h5
-rw-r--r--tmk_core/common/avr/timer_avr.h5
-rw-r--r--tmk_core/common/avr/xprintf.h5
-rw-r--r--tmk_core/common/bootloader.h5
-rw-r--r--tmk_core/common/bootmagic.h5
-rw-r--r--tmk_core/common/chibios/eeprom_stm32.h5
-rw-r--r--tmk_core/common/chibios/flash_stm32.h5
-rw-r--r--tmk_core/common/debug.h5
-rw-r--r--tmk_core/common/eeconfig.h5
-rw-r--r--tmk_core/common/eeprom.h5
-rw-r--r--tmk_core/common/host_driver.h5
-rw-r--r--tmk_core/common/keyboard.h5
-rw-r--r--tmk_core/common/keycode.h5
-rw-r--r--tmk_core/common/magic.h5
-rw-r--r--tmk_core/common/matrix.h6
-rw-r--r--tmk_core/common/mousekey.h4
-rw-r--r--tmk_core/common/nodebug.h5
-rw-r--r--tmk_core/common/print.h5
-rw-r--r--tmk_core/common/raw_hid.h5
-rw-r--r--tmk_core/common/sendchar.h5
-rw-r--r--tmk_core/common/sleep_led.h5
-rw-r--r--tmk_core/common/suspend.h5
-rw-r--r--tmk_core/common/timer.h5
-rw-r--r--tmk_core/common/uart.h5
-rw-r--r--tmk_core/common/util.h5
-rw-r--r--tmk_core/common/virtser.h5
-rw-r--r--tmk_core/common/wait.h5
34 files changed, 43 insertions, 134 deletions
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h
index 345c030c9..81cd54369 100644
--- a/tmk_core/common/action.h
+++ b/tmk_core/common/action.h
@@ -14,8 +14,8 @@ GNU General Public License for more details.
14You should have received a copy of the GNU General Public License 14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#ifndef ACTION_H 17
18#define ACTION_H 18#pragma once
19 19
20#include <stdint.h> 20#include <stdint.h>
21#include <stdbool.h> 21#include <stdbool.h>
@@ -124,5 +124,3 @@ void debug_action(action_t action);
124#ifdef __cplusplus 124#ifdef __cplusplus
125} 125}
126#endif 126#endif
127
128#endif /* ACTION_H */
diff --git a/tmk_core/common/action_code.h b/tmk_core/common/action_code.h
index eea554ff2..eb18c36ae 100644
--- a/tmk_core/common/action_code.h
+++ b/tmk_core/common/action_code.h
@@ -14,8 +14,8 @@ GNU General Public License for more details.
14You should have received a copy of the GNU General Public License 14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#ifndef ACTION_CODE_H 17
18#define ACTION_CODE_H 18#pragma once
19 19
20/** \brief Action codes 20/** \brief Action codes
21 * 21 *
@@ -306,5 +306,3 @@ enum swap_hands_param_tap_op {
306#define ACTION_SWAP_HANDS_OFF_ON() ACTION(ACT_SWAP_HANDS, OP_SH_OFF_ON) 306#define ACTION_SWAP_HANDS_OFF_ON() ACTION(ACT_SWAP_HANDS, OP_SH_OFF_ON)
307#define ACTION_SWAP_HANDS_ON() ACTION(ACT_SWAP_HANDS, OP_SH_ON) 307#define ACTION_SWAP_HANDS_ON() ACTION(ACT_SWAP_HANDS, OP_SH_ON)
308#define ACTION_SWAP_HANDS_OFF() ACTION(ACT_SWAP_HANDS, OP_SH_OFF) 308#define ACTION_SWAP_HANDS_OFF() ACTION(ACT_SWAP_HANDS, OP_SH_OFF)
309
310#endif /* ACTION_CODE_H */
diff --git a/tmk_core/common/action_layer.h b/tmk_core/common/action_layer.h
index f9f686112..d72cd3e3a 100644
--- a/tmk_core/common/action_layer.h
+++ b/tmk_core/common/action_layer.h
@@ -14,8 +14,8 @@ GNU General Public License for more details.
14You should have received a copy of the GNU General Public License 14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#ifndef ACTION_LAYER_H 17
18#define ACTION_LAYER_H 18#pragma once
19 19
20#include <stdint.h> 20#include <stdint.h>
21#include "keyboard.h" 21#include "keyboard.h"
@@ -120,5 +120,3 @@ uint8_t layer_switch_get_layer(keypos_t key);
120 120
121/* return action depending on current layer status */ 121/* return action depending on current layer status */
122action_t layer_switch_get_action(keypos_t key); 122action_t layer_switch_get_action(keypos_t key);
123
124#endif
diff --git a/tmk_core/common/action_macro.h b/tmk_core/common/action_macro.h
index 21004ead6..685e2c6ff 100644
--- a/tmk_core/common/action_macro.h
+++ b/tmk_core/common/action_macro.h
@@ -14,8 +14,9 @@ GNU General Public License for more details.
14You should have received a copy of the GNU General Public License 14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#ifndef ACTION_MACRO_H 17
18#define ACTION_MACRO_H 18#pragma once
19
19#include <stdint.h> 20#include <stdint.h>
20#include "progmem.h" 21#include "progmem.h"
21 22
@@ -120,5 +121,3 @@ enum macro_command_id {
120/* for backward comaptibility */ 121/* for backward comaptibility */
121#define MD(key) DOWN(KC_##key) 122#define MD(key) DOWN(KC_##key)
122#define MU(key) UP(KC_##key) 123#define MU(key) UP(KC_##key)
123
124#endif /* ACTION_MACRO_H */
diff --git a/tmk_core/common/action_tapping.h b/tmk_core/common/action_tapping.h
index 7015ce761..087090f80 100644
--- a/tmk_core/common/action_tapping.h
+++ b/tmk_core/common/action_tapping.h
@@ -14,8 +14,8 @@ GNU General Public License for more details.
14You should have received a copy of the GNU General Public License 14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#ifndef ACTION_TAPPING_H 17
18#define ACTION_TAPPING_H 18#pragma once
19 19
20/* period of tapping(ms) */ 20/* period of tapping(ms) */
21#ifndef TAPPING_TERM 21#ifndef TAPPING_TERM
@@ -36,5 +36,3 @@ uint16_t get_event_keycode(keyevent_t event, bool update_layer_cache);
36uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record); 36uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record);
37void action_tapping_process(keyrecord_t record); 37void action_tapping_process(keyrecord_t record);
38#endif 38#endif
39
40#endif
diff --git a/tmk_core/common/action_util.h b/tmk_core/common/action_util.h
index 743ff1406..ff29f79b0 100644
--- a/tmk_core/common/action_util.h
+++ b/tmk_core/common/action_util.h
@@ -14,8 +14,8 @@ GNU General Public License for more details.
14You should have received a copy of the GNU General Public License 14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#ifndef ACTION_UTIL_H 17
18#define ACTION_UTIL_H 18#pragma once
19 19
20#include <stdint.h> 20#include <stdint.h>
21#include "report.h" 21#include "report.h"
@@ -98,5 +98,3 @@ void clear_oneshot_swaphands(void);
98#ifdef __cplusplus 98#ifdef __cplusplus
99} 99}
100#endif 100#endif
101
102#endif
diff --git a/tmk_core/common/arm_atsam/printf.h b/tmk_core/common/arm_atsam/printf.h
index ad6672220..95557f5b0 100644
--- a/tmk_core/common/arm_atsam/printf.h
+++ b/tmk_core/common/arm_atsam/printf.h
@@ -1,10 +1,7 @@
1#ifndef _PRINTF_H_ 1#pragma once
2#define _PRINTF_H_
3 2
4#define CONSOLE_PRINTBUF_SIZE 512 3#define CONSOLE_PRINTBUF_SIZE 512
5 4
6void console_printf(char *fmt, ...); 5void console_printf(char *fmt, ...);
7 6
8#define __xprintf console_printf 7#define __xprintf console_printf
9
10#endif //_PRINTF_H_
diff --git a/tmk_core/common/avr/suspend_avr.h b/tmk_core/common/avr/suspend_avr.h
index e4cc0be50..6df048f3b 100644
--- a/tmk_core/common/avr/suspend_avr.h
+++ b/tmk_core/common/avr/suspend_avr.h
@@ -1,5 +1,4 @@
1#ifndef SUSPEND_AVR_H 1#pragma once
2#define SUSPEND_AVR_H
3 2
4#include <stdint.h> 3#include <stdint.h>
5#include <stdbool.h> 4#include <stdbool.h>
@@ -24,5 +23,3 @@ __asm__ __volatile__ ( \
24 : "r0" \ 23 : "r0" \
25) 24)
26// clang-format on 25// clang-format on
27
28#endif
diff --git a/tmk_core/common/avr/timer_avr.h b/tmk_core/common/avr/timer_avr.h
index 9aea21c65..c1b726bd0 100644
--- a/tmk_core/common/avr/timer_avr.h
+++ b/tmk_core/common/avr/timer_avr.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef TIMER_AVR_H 18#pragma once
19#define TIMER_AVR_H 1
20 19
21#include <stdint.h> 20#include <stdint.h>
22 21
@@ -38,5 +37,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
38#if (TIMER_RAW_TOP > 255) 37#if (TIMER_RAW_TOP > 255)
39# error "Timer0 can't count 1ms at this clock freq. Use larger prescaler." 38# error "Timer0 can't count 1ms at this clock freq. Use larger prescaler."
40#endif 39#endif
41
42#endif
diff --git a/tmk_core/common/avr/xprintf.h b/tmk_core/common/avr/xprintf.h
index 70e0f8e48..80834f171 100644
--- a/tmk_core/common/avr/xprintf.h
+++ b/tmk_core/common/avr/xprintf.h
@@ -2,8 +2,7 @@
2 Extended itoa, puts and printf (C)ChaN, 2011 2 Extended itoa, puts and printf (C)ChaN, 2011
3-----------------------------------------------------------------------------*/ 3-----------------------------------------------------------------------------*/
4 4
5#ifndef XPRINTF_H 5#pragma once
6#define XPRINTF_H
7 6
8#include <inttypes.h> 7#include <inttypes.h>
9#include <avr/pgmspace.h> 8#include <avr/pgmspace.h>
@@ -102,5 +101,3 @@ char xatoi(char **str, long *ret);
102#ifdef __cplusplus 101#ifdef __cplusplus
103} 102}
104#endif 103#endif
105
106#endif
diff --git a/tmk_core/common/bootloader.h b/tmk_core/common/bootloader.h
index 19260a079..25ebd9528 100644
--- a/tmk_core/common/bootloader.h
+++ b/tmk_core/common/bootloader.h
@@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef BOOTLOADER_H 18#pragma once
19#define BOOTLOADER_H
20 19
21/* give code for your bootloader to come up if needed */ 20/* give code for your bootloader to come up if needed */
22void bootloader_jump(void); 21void bootloader_jump(void);
23
24#endif
diff --git a/tmk_core/common/bootmagic.h b/tmk_core/common/bootmagic.h
index c64dc1785..8209d0194 100644
--- a/tmk_core/common/bootmagic.h
+++ b/tmk_core/common/bootmagic.h
@@ -1,5 +1,4 @@
1#ifndef BOOTMAGIC_H 1#pragma once
2#define BOOTMAGIC_H
3 2
4/* FIXME: Add special doxygen comments for defines here. */ 3/* FIXME: Add special doxygen comments for defines here. */
5 4
@@ -101,5 +100,3 @@
101 100
102void bootmagic(void); 101void bootmagic(void);
103bool bootmagic_scan_keycode(uint8_t keycode); 102bool bootmagic_scan_keycode(uint8_t keycode);
104
105#endif
diff --git a/tmk_core/common/chibios/eeprom_stm32.h b/tmk_core/common/chibios/eeprom_stm32.h
index 373325cd2..4dac7c1b5 100644
--- a/tmk_core/common/chibios/eeprom_stm32.h
+++ b/tmk_core/common/chibios/eeprom_stm32.h
@@ -21,8 +21,7 @@
21 * This library also assumes that the pages are not used by the firmware. 21 * This library also assumes that the pages are not used by the firmware.
22 */ 22 */
23 23
24#ifndef __EEPROM_H 24#pragma once
25#define __EEPROM_H
26 25
27#include <ch.h> 26#include <ch.h>
28#include <hal.h> 27#include <hal.h>
@@ -83,5 +82,3 @@ uint16_t EEPROM_Init(void);
83void EEPROM_Erase(void); 82void EEPROM_Erase(void);
84uint16_t EEPROM_WriteDataByte(uint16_t Address, uint8_t DataByte); 83uint16_t EEPROM_WriteDataByte(uint16_t Address, uint8_t DataByte);
85uint8_t EEPROM_ReadDataByte(uint16_t Address); 84uint8_t EEPROM_ReadDataByte(uint16_t Address);
86
87#endif /* __EEPROM_H */
diff --git a/tmk_core/common/chibios/flash_stm32.h b/tmk_core/common/chibios/flash_stm32.h
index 8a874f606..90d5bff47 100644
--- a/tmk_core/common/chibios/flash_stm32.h
+++ b/tmk_core/common/chibios/flash_stm32.h
@@ -16,8 +16,7 @@
16 * Modifications for QMK and STM32F303 by Yiancar 16 * Modifications for QMK and STM32F303 by Yiancar
17 */ 17 */
18 18
19#ifndef __FLASH_STM32_H 19#pragma once
20#define __FLASH_STM32_H
21 20
22#ifdef __cplusplus 21#ifdef __cplusplus
23extern "C" { 22extern "C" {
@@ -41,5 +40,3 @@ void FLASH_ClearFlag(uint32_t FLASH_FLAG);
41#ifdef __cplusplus 40#ifdef __cplusplus
42} 41}
43#endif 42#endif
44
45#endif /* __FLASH_STM32_H */
diff --git a/tmk_core/common/debug.h b/tmk_core/common/debug.h
index f9d611bb0..3d2e2315e 100644
--- a/tmk_core/common/debug.h
+++ b/tmk_core/common/debug.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef DEBUG_H 18#pragma once
19#define DEBUG_H 1
20 19
21#include <stdbool.h> 20#include <stdbool.h>
22#include "print.h" 21#include "print.h"
@@ -168,5 +167,3 @@ extern debug_config_t debug_config;
168# define debug_bin_reverse(data) 167# define debug_bin_reverse(data)
169 168
170#endif /* NO_DEBUG */ 169#endif /* NO_DEBUG */
171
172#endif
diff --git a/tmk_core/common/eeconfig.h b/tmk_core/common/eeconfig.h
index 6fbe78903..c4f048391 100644
--- a/tmk_core/common/eeconfig.h
+++ b/tmk_core/common/eeconfig.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef EECONFIG_H 18#pragma once
19#define EECONFIG_H
20 19
21#include <stdint.h> 20#include <stdint.h>
22#include <stdbool.h> 21#include <stdbool.h>
@@ -111,5 +110,3 @@ void eeconfig_update_haptic(uint32_t val);
111 110
112bool eeconfig_read_handedness(void); 111bool eeconfig_read_handedness(void);
113void eeconfig_update_handedness(bool val); 112void eeconfig_update_handedness(bool val);
114
115#endif
diff --git a/tmk_core/common/eeprom.h b/tmk_core/common/eeprom.h
index 8a81e7066..f5b3f0ad5 100644
--- a/tmk_core/common/eeprom.h
+++ b/tmk_core/common/eeprom.h
@@ -1,5 +1,4 @@
1#ifndef TMK_CORE_COMMON_EEPROM_H_ 1#pragma once
2#define TMK_CORE_COMMON_EEPROM_H_
3 2
4#if defined(__AVR__) && !defined(EEPROM_DRIVER) 3#if defined(__AVR__) && !defined(EEPROM_DRIVER)
5# include <avr/eeprom.h> 4# include <avr/eeprom.h>
@@ -20,5 +19,3 @@ void eeprom_update_word(uint16_t *__p, uint16_t __value);
20void eeprom_update_dword(uint32_t *__p, uint32_t __value); 19void eeprom_update_dword(uint32_t *__p, uint32_t __value);
21void eeprom_update_block(const void *__src, void *__dst, size_t __n); 20void eeprom_update_block(const void *__src, void *__dst, size_t __n);
22#endif 21#endif
23
24#endif /* TMK_CORE_COMMON_EEPROM_H_ */
diff --git a/tmk_core/common/host_driver.h b/tmk_core/common/host_driver.h
index 3cfec40cc..f34a22053 100644
--- a/tmk_core/common/host_driver.h
+++ b/tmk_core/common/host_driver.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef HOST_DRIVER_H 18#pragma once
19#define HOST_DRIVER_H
20 19
21#include <stdint.h> 20#include <stdint.h>
22#include "report.h" 21#include "report.h"
@@ -31,5 +30,3 @@ typedef struct {
31 void (*send_system)(uint16_t); 30 void (*send_system)(uint16_t);
32 void (*send_consumer)(uint16_t); 31 void (*send_consumer)(uint16_t);
33} host_driver_t; 32} host_driver_t;
34
35#endif
diff --git a/tmk_core/common/keyboard.h b/tmk_core/common/keyboard.h
index caa18e7e7..d04e685cd 100644
--- a/tmk_core/common/keyboard.h
+++ b/tmk_core/common/keyboard.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef KEYBOARD_H 18#pragma once
19#define KEYBOARD_H
20 19
21#include <stdbool.h> 20#include <stdbool.h>
22#include <stdint.h> 21#include <stdint.h>
@@ -77,5 +76,3 @@ void housekeeping_task_user(void);
77#ifdef __cplusplus 76#ifdef __cplusplus
78} 77}
79#endif 78#endif
80
81#endif
diff --git a/tmk_core/common/keycode.h b/tmk_core/common/keycode.h
index 5c8ba8fe6..d35e44d8d 100644
--- a/tmk_core/common/keycode.h
+++ b/tmk_core/common/keycode.h
@@ -21,8 +21,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21 * See https://web.archive.org/web/20060218214400/http://www.usb.org/developers/devclass_docs/Hut1_12.pdf 21 * See https://web.archive.org/web/20060218214400/http://www.usb.org/developers/devclass_docs/Hut1_12.pdf
22 * or http://www.usb.org/developers/hidpage/Hut1_12v2.pdf (older) 22 * or http://www.usb.org/developers/hidpage/Hut1_12v2.pdf (older)
23 */ 23 */
24#ifndef KEYCODE_H 24
25#define KEYCODE_H 25#pragma once
26 26
27/* FIXME: Add doxygen comments here */ 27/* FIXME: Add doxygen comments here */
28 28
@@ -542,4 +542,3 @@ enum mouse_keys {
542 KC_MS_ACCEL1, 542 KC_MS_ACCEL1,
543 KC_MS_ACCEL2 543 KC_MS_ACCEL2
544}; 544};
545#endif
diff --git a/tmk_core/common/magic.h b/tmk_core/common/magic.h
index 3fa2d8b81..a6552c04d 100644
--- a/tmk_core/common/magic.h
+++ b/tmk_core/common/magic.h
@@ -1,6 +1,3 @@
1#ifndef MAGIC_H 1#pragma once
2#define MAGIC_H
3 2
4void magic(void); 3void magic(void);
5
6#endif
diff --git a/tmk_core/common/matrix.h b/tmk_core/common/matrix.h
index 31ec84430..e36f01460 100644
--- a/tmk_core/common/matrix.h
+++ b/tmk_core/common/matrix.h
@@ -14,8 +14,8 @@ GNU General Public License for more details.
14You should have received a copy of the GNU General Public License 14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#ifndef MATRIX_H 17
18#define MATRIX_H 18#pragma once
19 19
20#include <stdint.h> 20#include <stdint.h>
21#include <stdbool.h> 21#include <stdbool.h>
@@ -76,5 +76,3 @@ void matrix_scan_user(void);
76#ifdef __cplusplus 76#ifdef __cplusplus
77} 77}
78#endif 78#endif
79
80#endif
diff --git a/tmk_core/common/mousekey.h b/tmk_core/common/mousekey.h
index 05e453823..300d262f5 100644
--- a/tmk_core/common/mousekey.h
+++ b/tmk_core/common/mousekey.h
@@ -15,9 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef MOUSEKEY_H 18#pragma once
19# define MOUSEKEY_H
20#endif
21 19
22#include <stdbool.h> 20#include <stdbool.h>
23#include "host.h" 21#include "host.h"
diff --git a/tmk_core/common/nodebug.h b/tmk_core/common/nodebug.h
index b9c8b3ac0..0b176684b 100644
--- a/tmk_core/common/nodebug.h
+++ b/tmk_core/common/nodebug.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef NODEBUG_H 18#pragma once
19#define NODEBUG_H
20 19
21#ifndef NO_DEBUG 20#ifndef NO_DEBUG
22# define NO_DEBUG 21# define NO_DEBUG
@@ -25,5 +24,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
25#else 24#else
26# include "debug.h" 25# include "debug.h"
27#endif 26#endif
28
29#endif
diff --git a/tmk_core/common/print.h b/tmk_core/common/print.h
index 1c7723621..647a5aa05 100644
--- a/tmk_core/common/print.h
+++ b/tmk_core/common/print.h
@@ -22,8 +22,7 @@
22 * THE SOFTWARE. 22 * THE SOFTWARE.
23 */ 23 */
24 24
25#ifndef PRINT_H__ 25#pragma once
26#define PRINT_H__ 1
27 26
28#include <stdint.h> 27#include <stdint.h>
29#include <stdbool.h> 28#include <stdbool.h>
@@ -269,5 +268,3 @@ extern "C"
269#define pbin16(data) print_bin16(data) 268#define pbin16(data) print_bin16(data)
270#define pbin_reverse(data) print_bin_reverse8(data) 269#define pbin_reverse(data) print_bin_reverse8(data)
271#define pbin_reverse16(data) print_bin_reverse16(data) 270#define pbin_reverse16(data) print_bin_reverse16(data)
272
273#endif
diff --git a/tmk_core/common/raw_hid.h b/tmk_core/common/raw_hid.h
index c579157f1..6d60ab2bf 100644
--- a/tmk_core/common/raw_hid.h
+++ b/tmk_core/common/raw_hid.h
@@ -1,8 +1,5 @@
1#ifndef _RAW_HID_H_ 1#pragma once
2#define _RAW_HID_H_
3 2
4void raw_hid_receive(uint8_t *data, uint8_t length); 3void raw_hid_receive(uint8_t *data, uint8_t length);
5 4
6void raw_hid_send(uint8_t *data, uint8_t length); 5void raw_hid_send(uint8_t *data, uint8_t length);
7
8#endif
diff --git a/tmk_core/common/sendchar.h b/tmk_core/common/sendchar.h
index bd7b94fd9..b150dd464 100644
--- a/tmk_core/common/sendchar.h
+++ b/tmk_core/common/sendchar.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef SENDCHAR_H 18#pragma once
19#define SENDCHAR_H
20 19
21#include <stdint.h> 20#include <stdint.h>
22 21
@@ -30,5 +29,3 @@ int8_t sendchar(uint8_t c);
30#ifdef __cplusplus 29#ifdef __cplusplus
31} 30}
32#endif 31#endif
33
34#endif
diff --git a/tmk_core/common/sleep_led.h b/tmk_core/common/sleep_led.h
index d160213f1..38f80a660 100644
--- a/tmk_core/common/sleep_led.h
+++ b/tmk_core/common/sleep_led.h
@@ -1,5 +1,4 @@
1#ifndef SLEEP_LED_H 1#pragma once
2#define SLEEP_LED_H
3 2
4#ifdef SLEEP_LED_ENABLE 3#ifdef SLEEP_LED_ENABLE
5 4
@@ -16,5 +15,3 @@ void sleep_led_toggle(void);
16# define sleep_led_toggle() 15# define sleep_led_toggle()
17 16
18#endif 17#endif
19
20#endif
diff --git a/tmk_core/common/suspend.h b/tmk_core/common/suspend.h
index 87f5025da..766df95aa 100644
--- a/tmk_core/common/suspend.h
+++ b/tmk_core/common/suspend.h
@@ -1,5 +1,4 @@
1#ifndef SUSPEND_H 1#pragma once
2#define SUSPEND_H
3 2
4#include <stdint.h> 3#include <stdint.h>
5#include <stdbool.h> 4#include <stdbool.h>
@@ -13,5 +12,3 @@ void suspend_wakeup_init_user(void);
13void suspend_wakeup_init_kb(void); 12void suspend_wakeup_init_kb(void);
14void suspend_power_down_user(void); 13void suspend_power_down_user(void);
15void suspend_power_down_kb(void); 14void suspend_power_down_kb(void);
16
17#endif
diff --git a/tmk_core/common/timer.h b/tmk_core/common/timer.h
index 7ee7feac2..58f637dd9 100644
--- a/tmk_core/common/timer.h
+++ b/tmk_core/common/timer.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef TIMER_H 18#pragma once
19#define TIMER_H 1
20 19
21#include <stdint.h> 20#include <stdint.h>
22#include <stdbool.h> 21#include <stdbool.h>
@@ -51,5 +50,3 @@ uint32_t timer_elapsed32(uint32_t last);
51#ifdef __cplusplus 50#ifdef __cplusplus
52} 51}
53#endif 52#endif
54
55#endif
diff --git a/tmk_core/common/uart.h b/tmk_core/common/uart.h
index 59a1a7cd1..ea247b17b 100644
--- a/tmk_core/common/uart.h
+++ b/tmk_core/common/uart.h
@@ -1,5 +1,4 @@
1#ifndef _uart_included_h_ 1#pragma once
2#define _uart_included_h_
3 2
4#include <stdint.h> 3#include <stdint.h>
5 4
@@ -7,5 +6,3 @@ void uart_init(uint32_t baud);
7void uart_putchar(uint8_t c); 6void uart_putchar(uint8_t c);
8uint8_t uart_getchar(void); 7uint8_t uart_getchar(void);
9uint8_t uart_available(void); 8uint8_t uart_available(void);
10
11#endif
diff --git a/tmk_core/common/util.h b/tmk_core/common/util.h
index 68642e7fd..db57f268c 100644
--- a/tmk_core/common/util.h
+++ b/tmk_core/common/util.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef UTIL_H 18#pragma once
19#define UTIL_H
20 19
21#include <stdint.h> 20#include <stdint.h>
22 21
@@ -46,5 +45,3 @@ uint32_t bitrev32(uint32_t bits);
46#ifdef __cplusplus 45#ifdef __cplusplus
47} 46}
48#endif 47#endif
49
50#endif
diff --git a/tmk_core/common/virtser.h b/tmk_core/common/virtser.h
index 74891b6ae..a0645f9e0 100644
--- a/tmk_core/common/virtser.h
+++ b/tmk_core/common/virtser.h
@@ -1,10 +1,7 @@
1#ifndef _VIRTSER_H_ 1#pragma once
2#define _VIRTSER_H_
3 2
4/* Define this function in your code to process incoming bytes */ 3/* Define this function in your code to process incoming bytes */
5void virtser_recv(const uint8_t ch); 4void virtser_recv(const uint8_t ch);
6 5
7/* Call this to send a character over the Virtual Serial Device */ 6/* Call this to send a character over the Virtual Serial Device */
8void virtser_send(const uint8_t byte); 7void virtser_send(const uint8_t byte);
9
10#endif
diff --git a/tmk_core/common/wait.h b/tmk_core/common/wait.h
index f5ef12ac0..89128e9da 100644
--- a/tmk_core/common/wait.h
+++ b/tmk_core/common/wait.h
@@ -1,5 +1,4 @@
1#ifndef WAIT_H 1#pragma once
2#define WAIT_H
3 2
4#include <inttypes.h> 3#include <inttypes.h>
5 4
@@ -41,5 +40,3 @@ void wait_ms(uint32_t ms);
41#ifdef __cplusplus 40#ifdef __cplusplus
42} 41}
43#endif 42#endif
44
45#endif