diff options
Diffstat (limited to 'quantum')
50 files changed, 68 insertions, 204 deletions
diff --git a/quantum/api.h b/quantum/api.h index 90a4de833..0a30e9d6c 100644 --- a/quantum/api.h +++ b/quantum/api.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef _API_H_ | 17 | #pragma once |
18 | #define _API_H_ | ||
19 | 18 | ||
20 | #ifdef __AVR__ | 19 | #ifdef __AVR__ |
21 | # include "lufa.h" | 20 | # include "lufa.h" |
@@ -54,5 +53,3 @@ __attribute__((weak)) bool process_api_quantum(uint8_t length, uint8_t* data); | |||
54 | __attribute__((weak)) bool process_api_keyboard(uint8_t length, uint8_t* data); | 53 | __attribute__((weak)) bool process_api_keyboard(uint8_t length, uint8_t* data); |
55 | 54 | ||
56 | __attribute__((weak)) bool process_api_user(uint8_t length, uint8_t* data); | 55 | __attribute__((weak)) bool process_api_user(uint8_t length, uint8_t* data); |
57 | |||
58 | #endif | ||
diff --git a/quantum/api/api_sysex.h b/quantum/api/api_sysex.h index 58b8cbb66..382f4bea4 100644 --- a/quantum/api/api_sysex.h +++ b/quantum/api/api_sysex.h | |||
@@ -14,13 +14,10 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef _API_SYSEX_H_ | 17 | #pragma once |
18 | #define _API_SYSEX_H_ | ||
19 | 18 | ||
20 | #include "api.h" | 19 | #include "api.h" |
21 | 20 | ||
22 | void send_bytes_sysex(uint8_t message_type, uint8_t data_type, uint8_t* bytes, uint16_t length); | 21 | void send_bytes_sysex(uint8_t message_type, uint8_t data_type, uint8_t* bytes, uint16_t length); |
23 | 22 | ||
24 | #define SEND_BYTES(mt, dt, b, l) send_bytes_sysex(mt, dt, b, l) | 23 | #define SEND_BYTES(mt, dt, b, l) send_bytes_sysex(mt, dt, b, l) |
25 | |||
26 | #endif | ||
diff --git a/quantum/audio/audio.h b/quantum/audio/audio.h index 805cb4f7a..bc00cd19e 100644 --- a/quantum/audio/audio.h +++ b/quantum/audio/audio.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #ifndef AUDIO_H | 16 | |
17 | #define AUDIO_H | 17 | #pragma once |
18 | 18 | ||
19 | #include <stdint.h> | 19 | #include <stdint.h> |
20 | #include <stdbool.h> | 20 | #include <stdbool.h> |
@@ -103,5 +103,3 @@ void play_notes(float (*np)[][2], uint16_t n_count, bool n_repeat); | |||
103 | #define PLAY_LOOP(note_array) play_notes(¬e_array, NOTE_ARRAY_SIZE((note_array)), true) | 103 | #define PLAY_LOOP(note_array) play_notes(¬e_array, NOTE_ARRAY_SIZE((note_array)), true) |
104 | 104 | ||
105 | bool is_playing_notes(void); | 105 | bool is_playing_notes(void); |
106 | |||
107 | #endif | ||
diff --git a/quantum/audio/luts.h b/quantum/audio/luts.h index 6fdd3b463..74980b292 100644 --- a/quantum/audio/luts.h +++ b/quantum/audio/luts.h | |||
@@ -14,6 +14,8 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #pragma once | ||
18 | |||
17 | #if defined(__AVR__) | 19 | #if defined(__AVR__) |
18 | # include <avr/io.h> | 20 | # include <avr/io.h> |
19 | # include <avr/interrupt.h> | 21 | # include <avr/interrupt.h> |
@@ -23,14 +25,9 @@ | |||
23 | # include <hal.h> | 25 | # include <hal.h> |
24 | #endif | 26 | #endif |
25 | 27 | ||
26 | #ifndef LUTS_H | 28 | #define VIBRATO_LUT_LENGTH 20 |
27 | # define LUTS_H | ||
28 | |||
29 | # define VIBRATO_LUT_LENGTH 20 | ||
30 | 29 | ||
31 | # define FREQUENCY_LUT_LENGTH 349 | 30 | #define FREQUENCY_LUT_LENGTH 349 |
32 | 31 | ||
33 | extern const float vibrato_lut[VIBRATO_LUT_LENGTH]; | 32 | extern const float vibrato_lut[VIBRATO_LUT_LENGTH]; |
34 | extern const uint16_t frequency_lut[FREQUENCY_LUT_LENGTH]; | 33 | extern const uint16_t frequency_lut[FREQUENCY_LUT_LENGTH]; |
35 | |||
36 | #endif /* LUTS_H */ | ||
diff --git a/quantum/audio/muse.h b/quantum/audio/muse.h index 6f382a7fe..ad2f96e43 100644 --- a/quantum/audio/muse.h +++ b/quantum/audio/muse.h | |||
@@ -1,9 +1,6 @@ | |||
1 | #ifndef MUSE_H | 1 | #pragma once |
2 | #define MUSE_H | ||
3 | 2 | ||
4 | #include "quantum.h" | 3 | #include "quantum.h" |
5 | #include "process_audio.h" | 4 | #include "process_audio.h" |
6 | 5 | ||
7 | uint8_t muse_clock_pulse(void); | 6 | uint8_t muse_clock_pulse(void); |
8 | |||
9 | #endif | ||
diff --git a/quantum/audio/musical_notes.h b/quantum/audio/musical_notes.h index 9742e19c4..8ac6aafd3 100644 --- a/quantum/audio/musical_notes.h +++ b/quantum/audio/musical_notes.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef MUSICAL_NOTES_H | 17 | #pragma once |
18 | #define MUSICAL_NOTES_H | ||
19 | 18 | ||
20 | // Tempo Placeholder | 19 | // Tempo Placeholder |
21 | #define TEMPO_DEFAULT 100 | 20 | #define TEMPO_DEFAULT 100 |
@@ -229,5 +228,3 @@ | |||
229 | #define NOTE_GF8 NOTE_FS8 | 228 | #define NOTE_GF8 NOTE_FS8 |
230 | #define NOTE_AF8 NOTE_GS8 | 229 | #define NOTE_AF8 NOTE_GS8 |
231 | #define NOTE_BF8 NOTE_AS8 | 230 | #define NOTE_BF8 NOTE_AS8 |
232 | |||
233 | #endif | ||
diff --git a/quantum/audio/voices.h b/quantum/audio/voices.h index 0c45b0720..abafa2b40 100644 --- a/quantum/audio/voices.h +++ b/quantum/audio/voices.h | |||
@@ -13,6 +13,9 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | |||
17 | #pragma once | ||
18 | |||
16 | #include <stdint.h> | 19 | #include <stdint.h> |
17 | #include <stdbool.h> | 20 | #include <stdbool.h> |
18 | #if defined(__AVR__) | 21 | #if defined(__AVR__) |
@@ -21,14 +24,11 @@ | |||
21 | #include "wait.h" | 24 | #include "wait.h" |
22 | #include "luts.h" | 25 | #include "luts.h" |
23 | 26 | ||
24 | #ifndef VOICES_H | ||
25 | # define VOICES_H | ||
26 | |||
27 | float voice_envelope(float frequency); | 27 | float voice_envelope(float frequency); |
28 | 28 | ||
29 | typedef enum { | 29 | typedef enum { |
30 | default_voice, | 30 | default_voice, |
31 | # ifdef AUDIO_VOICES | 31 | #ifdef AUDIO_VOICES |
32 | something, | 32 | something, |
33 | drums, | 33 | drums, |
34 | butts_fader, | 34 | butts_fader, |
@@ -41,12 +41,10 @@ typedef enum { | |||
41 | // duty_fourth_down, | 41 | // duty_fourth_down, |
42 | // duty_third_down, | 42 | // duty_third_down, |
43 | // duty_fifth_third_down, | 43 | // duty_fifth_third_down, |
44 | # endif | 44 | #endif |
45 | number_of_voices // important that this is last | 45 | number_of_voices // important that this is last |
46 | } voice_type; | 46 | } voice_type; |
47 | 47 | ||
48 | void set_voice(voice_type v); | 48 | void set_voice(voice_type v); |
49 | void voice_iterate(void); | 49 | void voice_iterate(void); |
50 | void voice_deiterate(void); | 50 | void voice_deiterate(void); |
51 | |||
52 | #endif | ||
diff --git a/quantum/color.h b/quantum/color.h index f0ee78275..7448168b3 100644 --- a/quantum/color.h +++ b/quantum/color.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef COLOR_H | 17 | #pragma once |
18 | #define COLOR_H | ||
19 | 18 | ||
20 | #include <stdint.h> | 19 | #include <stdint.h> |
21 | #include <stdbool.h> | 20 | #include <stdbool.h> |
@@ -86,4 +85,3 @@ RGB hsv_to_rgb_nocie(HSV hsv); | |||
86 | #ifdef RGBW | 85 | #ifdef RGBW |
87 | void convert_rgb_to_rgbw(LED_TYPE *led); | 86 | void convert_rgb_to_rgbw(LED_TYPE *led); |
88 | #endif | 87 | #endif |
89 | #endif // COLOR_H | ||
diff --git a/quantum/keycode_config.h b/quantum/keycode_config.h index aa75ba2c1..f878168c5 100644 --- a/quantum/keycode_config.h +++ b/quantum/keycode_config.h | |||
@@ -14,13 +14,12 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #pragma once | ||
18 | |||
17 | #include "eeconfig.h" | 19 | #include "eeconfig.h" |
18 | #include "keycode.h" | 20 | #include "keycode.h" |
19 | #include "action_code.h" | 21 | #include "action_code.h" |
20 | 22 | ||
21 | #ifndef KEYCODE_CONFIG_H | ||
22 | # define KEYCODE_CONFIG_H | ||
23 | |||
24 | uint16_t keycode_config(uint16_t keycode); | 23 | uint16_t keycode_config(uint16_t keycode); |
25 | uint8_t mod_config(uint8_t mod); | 24 | uint8_t mod_config(uint8_t mod); |
26 | 25 | ||
@@ -42,5 +41,3 @@ typedef union { | |||
42 | } keymap_config_t; | 41 | } keymap_config_t; |
43 | 42 | ||
44 | extern keymap_config_t keymap_config; | 43 | extern keymap_config_t keymap_config; |
45 | |||
46 | #endif /* KEYCODE_CONFIG_H */ | ||
diff --git a/quantum/keymap.h b/quantum/keymap.h index 90a2398ba..191e81397 100644 --- a/quantum/keymap.h +++ b/quantum/keymap.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 KEYMAP_H | 18 | #pragma once |
19 | #define KEYMAP_H | ||
20 | 19 | ||
21 | #include <stdint.h> | 20 | #include <stdint.h> |
22 | #include <stdbool.h> | 21 | #include <stdbool.h> |
@@ -55,5 +54,3 @@ uint16_t keymap_function_id_to_action(uint16_t function_id); | |||
55 | 54 | ||
56 | extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS]; | 55 | extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS]; |
57 | extern const uint16_t fn_actions[]; | 56 | extern const uint16_t fn_actions[]; |
58 | |||
59 | #endif | ||
diff --git a/quantum/keymap_extras/keymap_nordic.h b/quantum/keymap_extras/keymap_nordic.h index 8d2f76f27..76d2f4f6b 100644 --- a/quantum/keymap_extras/keymap_nordic.h +++ b/quantum/keymap_extras/keymap_nordic.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #ifndef KEYMAP_NORDIC_H | 16 | |
17 | #define KEYMAP_NORDIC_H | 17 | #pragma once |
18 | 18 | ||
19 | #include "keymap.h" | 19 | #include "keymap.h" |
20 | 20 | ||
@@ -66,5 +66,3 @@ | |||
66 | 66 | ||
67 | #define NO_BSLS ALGR(KC_MINS) | 67 | #define NO_BSLS ALGR(KC_MINS) |
68 | #define NO_MU ALGR(KC_M) | 68 | #define NO_MU ALGR(KC_M) |
69 | |||
70 | #endif | ||
diff --git a/quantum/keymap_extras/keymap_plover_dvorak.h b/quantum/keymap_extras/keymap_plover_dvorak.h index d40ff5c6b..445a12315 100644 --- a/quantum/keymap_extras/keymap_plover_dvorak.h +++ b/quantum/keymap_extras/keymap_plover_dvorak.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #ifndef KEYMAP_PLOVER_DVORAK_H | 16 | |
17 | #define KEYMAP_PLOVER_DVORAK_H | 17 | #pragma once |
18 | 18 | ||
19 | #include "keymap_dvorak.h" | 19 | #include "keymap_dvorak.h" |
20 | 20 | ||
@@ -43,5 +43,3 @@ | |||
43 | #define PD_O DV_V | 43 | #define PD_O DV_V |
44 | #define PD_E DV_N | 44 | #define PD_E DV_N |
45 | #define PD_U DV_M | 45 | #define PD_U DV_M |
46 | |||
47 | #endif | ||
diff --git a/quantum/keymap_extras/keymap_steno.h b/quantum/keymap_extras/keymap_steno.h index 31dcbf706..b9115fb8b 100644 --- a/quantum/keymap_extras/keymap_steno.h +++ b/quantum/keymap_extras/keymap_steno.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #ifndef KEYMAP_STENO_H | 16 | |
17 | #define KEYMAP_STENO_H | 17 | #pragma once |
18 | 18 | ||
19 | #include "keymap.h" | 19 | #include "keymap.h" |
20 | 20 | ||
@@ -72,5 +72,3 @@ enum steno_keycodes { | |||
72 | STN_ZR, | 72 | STN_ZR, |
73 | STN__MAX = STN_ZR, // must be less than QK_STENO_BOLT | 73 | STN__MAX = STN_ZR, // must be less than QK_STENO_BOLT |
74 | }; | 74 | }; |
75 | |||
76 | #endif | ||
diff --git a/quantum/led_matrix.h b/quantum/led_matrix.h index 5867ba987..7dcdf1d48 100644 --- a/quantum/led_matrix.h +++ b/quantum/led_matrix.h | |||
@@ -17,8 +17,7 @@ | |||
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #ifndef LED_MATRIX_H | 20 | #pragma once |
21 | #define LED_MATRIX_H | ||
22 | 21 | ||
23 | #ifndef BACKLIGHT_ENABLE | 22 | #ifndef BACKLIGHT_ENABLE |
24 | # error You must define BACKLIGHT_ENABLE with LED_MATRIX_ENABLE | 23 | # error You must define BACKLIGHT_ENABLE with LED_MATRIX_ENABLE |
@@ -123,5 +122,3 @@ typedef struct { | |||
123 | } led_matrix_driver_t; | 122 | } led_matrix_driver_t; |
124 | 123 | ||
125 | extern const led_matrix_driver_t led_matrix_driver; | 124 | extern const led_matrix_driver_t led_matrix_driver; |
126 | |||
127 | #endif | ||
diff --git a/quantum/led_tables.h b/quantum/led_tables.h index 8052d566c..cd3e5d74c 100644 --- a/quantum/led_tables.h +++ b/quantum/led_tables.h | |||
@@ -13,8 +13,7 @@ You should have received a copy of the GNU General Public License | |||
13 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 13 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifndef LED_TABLES_H | 16 | #pragma once |
17 | #define LED_TABLES_H | ||
18 | 17 | ||
19 | #include "progmem.h" | 18 | #include "progmem.h" |
20 | #include <stdint.h> | 19 | #include <stdint.h> |
@@ -22,5 +21,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
22 | #ifdef USE_CIE1931_CURVE | 21 | #ifdef USE_CIE1931_CURVE |
23 | extern const uint8_t CIE1931_CURVE[] PROGMEM; | 22 | extern const uint8_t CIE1931_CURVE[] PROGMEM; |
24 | #endif | 23 | #endif |
25 | |||
26 | #endif | ||
diff --git a/quantum/pointing_device.h b/quantum/pointing_device.h index 29398ebb3..aa074bb37 100644 --- a/quantum/pointing_device.h +++ b/quantum/pointing_device.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 POINTING_DEVICE_H | 18 | #pragma once |
19 | #define POINTING_DEVICE_H | ||
20 | 19 | ||
21 | #include <stdint.h> | 20 | #include <stdint.h> |
22 | #include "host.h" | 21 | #include "host.h" |
@@ -27,5 +26,3 @@ void pointing_device_task(void); | |||
27 | void pointing_device_send(void); | 26 | void pointing_device_send(void); |
28 | report_mouse_t pointing_device_get_report(void); | 27 | report_mouse_t pointing_device_get_report(void); |
29 | void pointing_device_set_report(report_mouse_t newMouseReport); | 28 | void pointing_device_set_report(report_mouse_t newMouseReport); |
30 | |||
31 | #endif | ||
diff --git a/quantum/process_keycode/process_audio.h b/quantum/process_keycode/process_audio.h index 3a84c3d86..d89a834ea 100644 --- a/quantum/process_keycode/process_audio.h +++ b/quantum/process_keycode/process_audio.h | |||
@@ -1,5 +1,4 @@ | |||
1 | #ifndef PROCESS_AUDIO_H | 1 | #pragma once |
2 | #define PROCESS_AUDIO_H | ||
3 | 2 | ||
4 | float compute_freq_for_midi_note(uint8_t note); | 3 | float compute_freq_for_midi_note(uint8_t note); |
5 | 4 | ||
@@ -9,5 +8,3 @@ void process_audio_noteoff(uint8_t note); | |||
9 | void process_audio_all_notes_off(void); | 8 | void process_audio_all_notes_off(void); |
10 | 9 | ||
11 | void audio_on_user(void); | 10 | void audio_on_user(void); |
12 | |||
13 | #endif | ||
diff --git a/quantum/process_keycode/process_clicky.h b/quantum/process_keycode/process_clicky.h index f746edb95..67b6463c5 100644 --- a/quantum/process_keycode/process_clicky.h +++ b/quantum/process_keycode/process_clicky.h | |||
@@ -1,5 +1,4 @@ | |||
1 | #ifndef PROCESS_CLICKY_H | 1 | #pragma once |
2 | #define PROCESS_CLICKY_H | ||
3 | 2 | ||
4 | void clicky_play(void); | 3 | void clicky_play(void); |
5 | bool process_clicky(uint16_t keycode, keyrecord_t *record); | 4 | bool process_clicky(uint16_t keycode, keyrecord_t *record); |
@@ -13,5 +12,3 @@ void clicky_on(void); | |||
13 | void clicky_off(void); | 12 | void clicky_off(void); |
14 | 13 | ||
15 | bool is_clicky_on(void); | 14 | bool is_clicky_on(void); |
16 | |||
17 | #endif | ||
diff --git a/quantum/process_keycode/process_combo.h b/quantum/process_keycode/process_combo.h index 0f01aae93..e51a2f1f4 100644 --- a/quantum/process_keycode/process_combo.h +++ b/quantum/process_keycode/process_combo.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef PROCESS_COMBO_H | 17 | #pragma once |
18 | #define PROCESS_COMBO_H | ||
19 | 18 | ||
20 | #include "progmem.h" | 19 | #include "progmem.h" |
21 | #include "quantum.h" | 20 | #include "quantum.h" |
@@ -62,5 +61,3 @@ void combo_enable(void); | |||
62 | void combo_disable(void); | 61 | void combo_disable(void); |
63 | void combo_toggle(void); | 62 | void combo_toggle(void); |
64 | bool is_combo_enabled(void); | 63 | bool is_combo_enabled(void); |
65 | |||
66 | #endif | ||
diff --git a/quantum/process_keycode/process_key_lock.h b/quantum/process_keycode/process_key_lock.h index a8e110a4b..baa0b3907 100644 --- a/quantum/process_keycode/process_key_lock.h +++ b/quantum/process_keycode/process_key_lock.h | |||
@@ -14,11 +14,8 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef PROCESS_KEY_LOCK_H | 17 | #pragma once |
18 | #define PROCESS_KEY_LOCK_H | ||
19 | 18 | ||
20 | #include "quantum.h" | 19 | #include "quantum.h" |
21 | 20 | ||
22 | bool process_key_lock(uint16_t *keycode, keyrecord_t *record); | 21 | bool process_key_lock(uint16_t *keycode, keyrecord_t *record); |
23 | |||
24 | #endif // PROCESS_KEY_LOCK_H | ||
diff --git a/quantum/process_keycode/process_leader.h b/quantum/process_keycode/process_leader.h index e0edf57b3..9844f27a1 100644 --- a/quantum/process_keycode/process_leader.h +++ b/quantum/process_keycode/process_leader.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef PROCESS_LEADER_H | 17 | #pragma once |
18 | #define PROCESS_LEADER_H | ||
19 | 18 | ||
20 | #include "quantum.h" | 19 | #include "quantum.h" |
21 | 20 | ||
@@ -37,5 +36,3 @@ void qk_leader_start(void); | |||
37 | extern uint16_t leader_sequence[5]; \ | 36 | extern uint16_t leader_sequence[5]; \ |
38 | extern uint8_t leader_sequence_size | 37 | extern uint8_t leader_sequence_size |
39 | #define LEADER_DICTIONARY() if (leading && timer_elapsed(leader_time) > LEADER_TIMEOUT) | 38 | #define LEADER_DICTIONARY() if (leading && timer_elapsed(leader_time) > LEADER_TIMEOUT) |
40 | |||
41 | #endif | ||
diff --git a/quantum/process_keycode/process_midi.h b/quantum/process_keycode/process_midi.h index ef5661dd4..68c6eda66 100644 --- a/quantum/process_keycode/process_midi.h +++ b/quantum/process_keycode/process_midi.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef PROCESS_MIDI_H | 17 | #pragma once |
18 | #define PROCESS_MIDI_H | ||
19 | 18 | ||
20 | #include "quantum.h" | 19 | #include "quantum.h" |
21 | 20 | ||
@@ -53,5 +52,3 @@ uint8_t midi_compute_note(uint16_t keycode); | |||
53 | # endif // MIDI_ADVANCED | 52 | # endif // MIDI_ADVANCED |
54 | 53 | ||
55 | #endif // MIDI_ENABLE | 54 | #endif // MIDI_ENABLE |
56 | |||
57 | #endif | ||
diff --git a/quantum/process_keycode/process_music.h b/quantum/process_keycode/process_music.h index 292bc5374..01014aa6c 100644 --- a/quantum/process_keycode/process_music.h +++ b/quantum/process_keycode/process_music.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef PROCESS_MUSIC_H | 17 | #pragma once |
18 | #define PROCESS_MUSIC_H | ||
19 | 18 | ||
20 | #include "quantum.h" | 19 | #include "quantum.h" |
21 | 20 | ||
@@ -57,5 +56,3 @@ bool music_mask_user(uint16_t keycode); | |||
57 | # endif | 56 | # endif |
58 | 57 | ||
59 | #endif // defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC)) | 58 | #endif // defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC)) |
60 | |||
61 | #endif | ||
diff --git a/quantum/process_keycode/process_printer.h b/quantum/process_keycode/process_printer.h index 71d3a4b56..3c6d06ff9 100644 --- a/quantum/process_keycode/process_printer.h +++ b/quantum/process_keycode/process_printer.h | |||
@@ -14,13 +14,10 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef PROCESS_PRINTER_H | 17 | #pragma once |
18 | #define PROCESS_PRINTER_H | ||
19 | 18 | ||
20 | #include "quantum.h" | 19 | #include "quantum.h" |
21 | 20 | ||
22 | #include "protocol/serial.h" | 21 | #include "protocol/serial.h" |
23 | 22 | ||
24 | bool process_printer(uint16_t keycode, keyrecord_t *record); | 23 | bool process_printer(uint16_t keycode, keyrecord_t *record); |
25 | |||
26 | #endif | ||
diff --git a/quantum/process_keycode/process_steno.h b/quantum/process_keycode/process_steno.h index ed049eb13..d11fd40af 100644 --- a/quantum/process_keycode/process_steno.h +++ b/quantum/process_keycode/process_steno.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #ifndef PROCESS_STENO_H | 16 | |
17 | #define PROCESS_STENO_H | 17 | #pragma once |
18 | 18 | ||
19 | #include "quantum.h" | 19 | #include "quantum.h" |
20 | 20 | ||
@@ -25,5 +25,3 @@ void steno_init(void); | |||
25 | void steno_set_mode(steno_mode_t mode); | 25 | void steno_set_mode(steno_mode_t mode); |
26 | uint8_t *steno_get_state(void); | 26 | uint8_t *steno_get_state(void); |
27 | uint8_t *steno_get_chord(void); | 27 | uint8_t *steno_get_chord(void); |
28 | |||
29 | #endif | ||
diff --git a/quantum/process_keycode/process_tap_dance.h b/quantum/process_keycode/process_tap_dance.h index 09ceef74d..a013c5cab 100644 --- a/quantum/process_keycode/process_tap_dance.h +++ b/quantum/process_keycode/process_tap_dance.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #ifndef PROCESS_TAP_DANCE_H | 16 | |
17 | #define PROCESS_TAP_DANCE_H | 17 | #pragma once |
18 | 18 | ||
19 | #ifdef TAP_DANCE_ENABLE | 19 | #ifdef TAP_DANCE_ENABLE |
20 | 20 | ||
@@ -101,5 +101,3 @@ void qk_tap_dance_dual_role_reset(qk_tap_dance_state_t *state, void *user_data); | |||
101 | # define TD(n) KC_NO | 101 | # define TD(n) KC_NO |
102 | 102 | ||
103 | #endif | 103 | #endif |
104 | |||
105 | #endif | ||
diff --git a/quantum/process_keycode/process_terminal.h b/quantum/process_keycode/process_terminal.h index 8426f442b..0159131e5 100644 --- a/quantum/process_keycode/process_terminal.h +++ b/quantum/process_keycode/process_terminal.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef PROCESS_TERMINAL_H | 17 | #pragma once |
18 | #define PROCESS_TERMINAL_H | ||
19 | 18 | ||
20 | #include "quantum.h" | 19 | #include "quantum.h" |
21 | 20 | ||
@@ -23,5 +22,3 @@ extern const char keycode_to_ascii_lut[58]; | |||
23 | extern const char shifted_keycode_to_ascii_lut[58]; | 22 | extern const char shifted_keycode_to_ascii_lut[58]; |
24 | extern const char terminal_prompt[8]; | 23 | extern const char terminal_prompt[8]; |
25 | bool process_terminal(uint16_t keycode, keyrecord_t *record); | 24 | bool process_terminal(uint16_t keycode, keyrecord_t *record); |
26 | |||
27 | #endif \ No newline at end of file | ||
diff --git a/quantum/process_keycode/process_terminal_nop.h b/quantum/process_keycode/process_terminal_nop.h index 56895b33c..36e25320c 100644 --- a/quantum/process_keycode/process_terminal_nop.h +++ b/quantum/process_keycode/process_terminal_nop.h | |||
@@ -14,12 +14,9 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef PROCESS_TERMINAL_H | 17 | #pragma once |
18 | #define PROCESS_TERMINAL_H | ||
19 | 18 | ||
20 | #include "quantum.h" | 19 | #include "quantum.h" |
21 | 20 | ||
22 | #define TERM_ON KC_NO | 21 | #define TERM_ON KC_NO |
23 | #define TERM_OFF KC_NO | 22 | #define TERM_OFF KC_NO |
24 | |||
25 | #endif \ No newline at end of file | ||
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index a2cc7b38d..0160c5586 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #ifndef QUANTUM_KEYCODES_H | 16 | |
17 | #define QUANTUM_KEYCODES_H | 17 | #pragma once |
18 | 18 | ||
19 | #if defined(SEQUENCER_ENABLE) | 19 | #if defined(SEQUENCER_ENABLE) |
20 | # include "sequencer.h" | 20 | # include "sequencer.h" |
@@ -889,5 +889,3 @@ enum quantum_keycodes { | |||
889 | #define DM_RSTP DYN_REC_STOP | 889 | #define DM_RSTP DYN_REC_STOP |
890 | #define DM_PLY1 DYN_MACRO_PLAY1 | 890 | #define DM_PLY1 DYN_MACRO_PLAY1 |
891 | #define DM_PLY2 DYN_MACRO_PLAY2 | 891 | #define DM_PLY2 DYN_MACRO_PLAY2 |
892 | |||
893 | #endif // QUANTUM_KEYCODES_H | ||
diff --git a/quantum/rgb.h b/quantum/rgb.h index 7b6ea0542..2602fc0b2 100644 --- a/quantum/rgb.h +++ b/quantum/rgb.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef RGB_H | 17 | #pragma once |
18 | #define RGB_H | ||
19 | 18 | ||
20 | __attribute__((weak)) void rgblight_toggle(void){}; | 19 | __attribute__((weak)) void rgblight_toggle(void){}; |
21 | 20 | ||
@@ -38,5 +37,3 @@ __attribute__((weak)) void rgblight_decrease_val(void){}; | |||
38 | __attribute__((weak)) void rgblight_increase_speed(void){}; | 37 | __attribute__((weak)) void rgblight_increase_speed(void){}; |
39 | 38 | ||
40 | __attribute__((weak)) void rgblight_decrease_speed(void){}; | 39 | __attribute__((weak)) void rgblight_decrease_speed(void){}; |
41 | |||
42 | #endif \ No newline at end of file | ||
diff --git a/quantum/rgb_matrix.h b/quantum/rgb_matrix.h index 1fd016d79..8c80c1bff 100644 --- a/quantum/rgb_matrix.h +++ b/quantum/rgb_matrix.h | |||
@@ -16,8 +16,7 @@ | |||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #ifndef RGB_MATRIX_H | 19 | #pragma once |
20 | #define RGB_MATRIX_H | ||
21 | 20 | ||
22 | #include <stdint.h> | 21 | #include <stdint.h> |
23 | #include <stdbool.h> | 22 | #include <stdbool.h> |
@@ -226,5 +225,3 @@ extern last_hit_t g_last_hit_tracker; | |||
226 | #ifdef RGB_MATRIX_FRAMEBUFFER_EFFECTS | 225 | #ifdef RGB_MATRIX_FRAMEBUFFER_EFFECTS |
227 | extern uint8_t g_rgb_frame_buffer[MATRIX_ROWS][MATRIX_COLS]; | 226 | extern uint8_t g_rgb_frame_buffer[MATRIX_ROWS][MATRIX_COLS]; |
228 | #endif | 227 | #endif |
229 | |||
230 | #endif | ||
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index c3a9e94b7..c02fd4f37 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #ifndef RGBLIGHT_H | 16 | |
17 | #define RGBLIGHT_H | 17 | #pragma once |
18 | 18 | ||
19 | /***** rgblight_mode(mode)/rgblight_mode_noeeprom(mode) **** | 19 | /***** rgblight_mode(mode)/rgblight_mode_noeeprom(mode) **** |
20 | 20 | ||
@@ -437,4 +437,3 @@ void rgblight_effect_twinkle(animation_status_t *anim); | |||
437 | # endif | 437 | # endif |
438 | 438 | ||
439 | #endif // #ifndef RGBLIGHT_H_DUMMY_DEFINE | 439 | #endif // #ifndef RGBLIGHT_H_DUMMY_DEFINE |
440 | #endif // RGBLIGHT_H | ||
diff --git a/quantum/serial_link/protocol/byte_stuffer.h b/quantum/serial_link/protocol/byte_stuffer.h index 97e896856..397ed3baa 100644 --- a/quantum/serial_link/protocol/byte_stuffer.h +++ b/quantum/serial_link/protocol/byte_stuffer.h | |||
@@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef SERIAL_LINK_BYTE_STUFFER_H | 25 | #pragma once |
26 | #define SERIAL_LINK_BYTE_STUFFER_H | ||
27 | 26 | ||
28 | #include <stdint.h> | 27 | #include <stdint.h> |
29 | 28 | ||
@@ -33,5 +32,3 @@ SOFTWARE. | |||
33 | void init_byte_stuffer(void); | 32 | void init_byte_stuffer(void); |
34 | void byte_stuffer_recv_byte(uint8_t link, uint8_t data); | 33 | void byte_stuffer_recv_byte(uint8_t link, uint8_t data); |
35 | void byte_stuffer_send_frame(uint8_t link, uint8_t* data, uint16_t size); | 34 | void byte_stuffer_send_frame(uint8_t link, uint8_t* data, uint16_t size); |
36 | |||
37 | #endif | ||
diff --git a/quantum/serial_link/protocol/frame_router.h b/quantum/serial_link/protocol/frame_router.h index 712250ff3..9325fe4ee 100644 --- a/quantum/serial_link/protocol/frame_router.h +++ b/quantum/serial_link/protocol/frame_router.h | |||
@@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef SERIAL_LINK_FRAME_ROUTER_H | 25 | #pragma once |
26 | #define SERIAL_LINK_FRAME_ROUTER_H | ||
27 | 26 | ||
28 | #include <stdint.h> | 27 | #include <stdint.h> |
29 | #include <stdbool.h> | 28 | #include <stdbool.h> |
@@ -34,5 +33,3 @@ SOFTWARE. | |||
34 | void router_set_master(bool master); | 33 | void router_set_master(bool master); |
35 | void route_incoming_frame(uint8_t link, uint8_t* data, uint16_t size); | 34 | void route_incoming_frame(uint8_t link, uint8_t* data, uint16_t size); |
36 | void router_send_frame(uint8_t destination, uint8_t* data, uint16_t size); | 35 | void router_send_frame(uint8_t destination, uint8_t* data, uint16_t size); |
37 | |||
38 | #endif | ||
diff --git a/quantum/serial_link/protocol/frame_validator.h b/quantum/serial_link/protocol/frame_validator.h index 4a910d510..0f78768a0 100644 --- a/quantum/serial_link/protocol/frame_validator.h +++ b/quantum/serial_link/protocol/frame_validator.h | |||
@@ -22,13 +22,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef SERIAL_LINK_FRAME_VALIDATOR_H | 25 | #pragma once |
26 | #define SERIAL_LINK_FRAME_VALIDATOR_H | ||
27 | 26 | ||
28 | #include <stdint.h> | 27 | #include <stdint.h> |
29 | 28 | ||
30 | void validator_recv_frame(uint8_t link, uint8_t* data, uint16_t size); | 29 | void validator_recv_frame(uint8_t link, uint8_t* data, uint16_t size); |
31 | // The buffer pointed to by the data needs 4 additional bytes | 30 | // The buffer pointed to by the data needs 4 additional bytes |
32 | void validator_send_frame(uint8_t link, uint8_t* data, uint16_t size); | 31 | void validator_send_frame(uint8_t link, uint8_t* data, uint16_t size); |
33 | |||
34 | #endif | ||
diff --git a/quantum/serial_link/protocol/physical.h b/quantum/serial_link/protocol/physical.h index 425e06cdd..399c9d1f7 100644 --- a/quantum/serial_link/protocol/physical.h +++ b/quantum/serial_link/protocol/physical.h | |||
@@ -22,9 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef SERIAL_LINK_PHYSICAL_H | 25 | #pragma once |
26 | #define SERIAL_LINK_PHYSICAL_H | ||
27 | 26 | ||
28 | void send_data(uint8_t link, const uint8_t* data, uint16_t size); | 27 | void send_data(uint8_t link, const uint8_t* data, uint16_t size); |
29 | |||
30 | #endif | ||
diff --git a/quantum/serial_link/protocol/transport.h b/quantum/serial_link/protocol/transport.h index 309a56b00..3ce0c9fe4 100644 --- a/quantum/serial_link/protocol/transport.h +++ b/quantum/serial_link/protocol/transport.h | |||
@@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef SERIAL_LINK_TRANSPORT_H | 25 | #pragma once |
26 | #define SERIAL_LINK_TRANSPORT_H | ||
27 | 26 | ||
28 | #include "serial_link/protocol/triple_buffered_object.h" | 27 | #include "serial_link/protocol/triple_buffered_object.h" |
29 | #include "serial_link/system/serial_link.h" | 28 | #include "serial_link/system/serial_link.h" |
@@ -138,5 +137,3 @@ void add_remote_objects(remote_object_t** remote_objects, uint32_t num_remote_ob | |||
138 | void reinitialize_serial_link_transport(void); | 137 | void reinitialize_serial_link_transport(void); |
139 | void transport_recv_frame(uint8_t from, uint8_t* data, uint16_t size); | 138 | void transport_recv_frame(uint8_t from, uint8_t* data, uint16_t size); |
140 | void update_transport(void); | 139 | void update_transport(void); |
141 | |||
142 | #endif | ||
diff --git a/quantum/serial_link/protocol/triple_buffered_object.h b/quantum/serial_link/protocol/triple_buffered_object.h index 6ec98d52b..717d6d7b8 100644 --- a/quantum/serial_link/protocol/triple_buffered_object.h +++ b/quantum/serial_link/protocol/triple_buffered_object.h | |||
@@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef SERIAL_LINK_TRIPLE_BUFFERED_OBJECT_H | 25 | #pragma once |
26 | #define SERIAL_LINK_TRIPLE_BUFFERED_OBJECT_H | ||
27 | 26 | ||
28 | #include <stdint.h> | 27 | #include <stdint.h> |
29 | 28 | ||
@@ -43,5 +42,3 @@ void triple_buffer_init(triple_buffer_object_t* object); | |||
43 | void* triple_buffer_begin_write_internal(uint16_t object_size, triple_buffer_object_t* object); | 42 | void* triple_buffer_begin_write_internal(uint16_t object_size, triple_buffer_object_t* object); |
44 | void triple_buffer_end_write_internal(triple_buffer_object_t* object); | 43 | void triple_buffer_end_write_internal(triple_buffer_object_t* object); |
45 | void* triple_buffer_read_internal(uint16_t object_size, triple_buffer_object_t* object); | 44 | void* triple_buffer_read_internal(uint16_t object_size, triple_buffer_object_t* object); |
46 | |||
47 | #endif | ||
diff --git a/quantum/serial_link/system/serial_link.h b/quantum/serial_link/system/serial_link.h index b6a473957..adc1f6e93 100644 --- a/quantum/serial_link/system/serial_link.h +++ b/quantum/serial_link/system/serial_link.h | |||
@@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef SERIAL_LINK_H | 25 | #pragma once |
26 | #define SERIAL_LINK_H | ||
27 | 26 | ||
28 | #include "host_driver.h" | 27 | #include "host_driver.h" |
29 | #include <stdbool.h> | 28 | #include <stdbool.h> |
@@ -53,5 +52,3 @@ inline void serial_link_unlock(void) {} | |||
53 | void signal_data_written(void); | 52 | void signal_data_written(void); |
54 | 53 | ||
55 | #endif | 54 | #endif |
56 | |||
57 | #endif | ||
diff --git a/quantum/variable_trace.h b/quantum/variable_trace.h index 26b810d3c..f4d125380 100644 --- a/quantum/variable_trace.h +++ b/quantum/variable_trace.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef VARIABLE_TRACE_H | 17 | #pragma once |
18 | #define VARIABLE_TRACE_H | ||
19 | 18 | ||
20 | // For more information about the variable tracing see the readme. | 19 | // For more information about the variable tracing see the readme. |
21 | 20 | ||
@@ -46,4 +45,3 @@ | |||
46 | void add_traced_variable(const char* name, void* addr, unsigned size, const char* func, int line); | 45 | void add_traced_variable(const char* name, void* addr, unsigned size, const char* func, int line); |
47 | void remove_traced_variable(const char* name, const char* func, int line); | 46 | void remove_traced_variable(const char* name, const char* func, int line); |
48 | void verify_traced_variables(const char* func, int line); | 47 | void verify_traced_variables(const char* func, int line); |
49 | #endif | ||
diff --git a/quantum/velocikey.h b/quantum/velocikey.h index b977606c5..c375f82f7 100644 --- a/quantum/velocikey.h +++ b/quantum/velocikey.h | |||
@@ -1,5 +1,4 @@ | |||
1 | #ifndef VELOCIKEY_H | 1 | #pragma once |
2 | #define VELOCIKEY_H | ||
3 | 2 | ||
4 | #include <stdint.h> | 3 | #include <stdint.h> |
5 | #include <stdbool.h> | 4 | #include <stdbool.h> |
@@ -9,5 +8,3 @@ void velocikey_toggle(void); | |||
9 | void velocikey_accelerate(void); | 8 | void velocikey_accelerate(void); |
10 | void velocikey_decelerate(void); | 9 | void velocikey_decelerate(void); |
11 | uint8_t velocikey_match_speed(uint8_t minValue, uint8_t maxValue); | 10 | uint8_t velocikey_match_speed(uint8_t minValue, uint8_t maxValue); |
12 | |||
13 | #endif \ No newline at end of file | ||
diff --git a/quantum/visualizer/common_gfxconf.h b/quantum/visualizer/common_gfxconf.h index e5bbddbb0..e0735b37d 100644 --- a/quantum/visualizer/common_gfxconf.h +++ b/quantum/visualizer/common_gfxconf.h | |||
@@ -19,8 +19,7 @@ | |||
19 | * Please use spaces instead of tabs in this file. | 19 | * Please use spaces instead of tabs in this file. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef COMMON_GFXCONF_H | 22 | #pragma once |
23 | #define COMMON_GFXCONF_H | ||
24 | 23 | ||
25 | /////////////////////////////////////////////////////////////////////////// | 24 | /////////////////////////////////////////////////////////////////////////// |
26 | // GFX - Compatibility options // | 25 | // GFX - Compatibility options // |
@@ -353,5 +352,3 @@ | |||
353 | #define GMISC_NEED_MATRIXFLOAT2D GFXON | 352 | #define GMISC_NEED_MATRIXFLOAT2D GFXON |
354 | #define GMISC_NEED_MATRIXFIXED2D GFXOFF | 353 | #define GMISC_NEED_MATRIXFIXED2D GFXOFF |
355 | //#define GMISC_NEED_HITTEST_POLY GFXOFF | 354 | //#define GMISC_NEED_HITTEST_POLY GFXOFF |
356 | |||
357 | #endif /* COMMON_GFXCONF_H */ | ||
diff --git a/quantum/visualizer/default_animations.h b/quantum/visualizer/default_animations.h index 51320b8b8..9accd8977 100644 --- a/quantum/visualizer/default_animations.h +++ b/quantum/visualizer/default_animations.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef DEFAULT_ANIMATIONS_H_ | 17 | #pragma once |
18 | #define DEFAULT_ANIMATIONS_H_ | ||
19 | 18 | ||
20 | #include "visualizer.h" | 19 | #include "visualizer.h" |
21 | 20 | ||
@@ -26,5 +25,3 @@ extern keyframe_animation_t default_suspend_animation; | |||
26 | // An animation for testing and demonstrating the led support, should probably not be used for real world | 25 | // An animation for testing and demonstrating the led support, should probably not be used for real world |
27 | // cases | 26 | // cases |
28 | extern keyframe_animation_t led_test_animation; | 27 | extern keyframe_animation_t led_test_animation; |
29 | |||
30 | #endif /* DEFAULT_ANIMATIONS_H_ */ | ||
diff --git a/quantum/visualizer/lcd_backlight.h b/quantum/visualizer/lcd_backlight.h index 0a1535edf..4ea5b1463 100644 --- a/quantum/visualizer/lcd_backlight.h +++ b/quantum/visualizer/lcd_backlight.h | |||
@@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef LCD_BACKLIGHT_H_ | 25 | #pragma once |
26 | #define LCD_BACKLIGHT_H_ | 26 | |
27 | #include <stdint.h> | 27 | #include <stdint.h> |
28 | 28 | ||
29 | // Helper macros for storing hue, staturation and intensity as unsigned integers | 29 | // Helper macros for storing hue, staturation and intensity as unsigned integers |
@@ -41,5 +41,3 @@ uint8_t lcd_get_backlight_brightness(void); | |||
41 | 41 | ||
42 | void lcd_backlight_hal_init(void); | 42 | void lcd_backlight_hal_init(void); |
43 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b); | 43 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b); |
44 | |||
45 | #endif /* LCD_BACKLIGHT_H_ */ | ||
diff --git a/quantum/visualizer/lcd_backlight_keyframes.h b/quantum/visualizer/lcd_backlight_keyframes.h index bde118449..88768dd4a 100644 --- a/quantum/visualizer/lcd_backlight_keyframes.h +++ b/quantum/visualizer/lcd_backlight_keyframes.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ | 17 | #pragma once |
18 | #define QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ | ||
19 | 18 | ||
20 | #include "visualizer.h" | 19 | #include "visualizer.h" |
21 | 20 | ||
@@ -26,5 +25,3 @@ bool lcd_backlight_keyframe_set_color(keyframe_animation_t* animation, visualize | |||
26 | 25 | ||
27 | bool lcd_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); | 26 | bool lcd_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); |
28 | bool lcd_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); | 27 | bool lcd_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); |
29 | |||
30 | #endif /* QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ */ | ||
diff --git a/quantum/visualizer/lcd_keyframes.h b/quantum/visualizer/lcd_keyframes.h index 6346c8643..b7125e832 100644 --- a/quantum/visualizer/lcd_keyframes.h +++ b/quantum/visualizer/lcd_keyframes.h | |||
@@ -14,8 +14,7 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ | 17 | #pragma once |
18 | #define QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ | ||
19 | 18 | ||
20 | #include "visualizer.h" | 19 | #include "visualizer.h" |
21 | 20 | ||
@@ -34,5 +33,3 @@ bool lcd_keyframe_draw_logo(keyframe_animation_t* animation, visualizer_state_t* | |||
34 | 33 | ||
35 | bool lcd_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); | 34 | bool lcd_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); |
36 | bool lcd_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); | 35 | bool lcd_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); |
37 | |||
38 | #endif /* QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ */ | ||
diff --git a/quantum/visualizer/led_backlight_keyframes.h b/quantum/visualizer/led_backlight_keyframes.h index 648f92b91..90153be5e 100644 --- a/quantum/visualizer/led_backlight_keyframes.h +++ b/quantum/visualizer/led_backlight_keyframes.h | |||
@@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef LED_BACKLIGHT_KEYFRAMES_H | 25 | #pragma once |
26 | #define LED_BACKLIGHT_KEYFRAMES_H | ||
27 | 26 | ||
28 | #include "visualizer.h" | 27 | #include "visualizer.h" |
29 | 28 | ||
@@ -39,5 +38,3 @@ bool led_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_ | |||
39 | bool led_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); | 38 | bool led_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); |
40 | 39 | ||
41 | extern keyframe_animation_t led_test_animation; | 40 | extern keyframe_animation_t led_test_animation; |
42 | |||
43 | #endif /* LED_KEYFRAMES_H */ | ||
diff --git a/quantum/visualizer/resources/resources.h b/quantum/visualizer/resources/resources.h index 74fd8d2f6..5178fbe55 100644 --- a/quantum/visualizer/resources/resources.h +++ b/quantum/visualizer/resources/resources.h | |||
@@ -14,13 +14,10 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ | 17 | #pragma once |
18 | #define QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ | ||
19 | 18 | ||
20 | #include <stdint.h> | 19 | #include <stdint.h> |
21 | 20 | ||
22 | #ifdef LCD_ENABLE | 21 | #ifdef LCD_ENABLE |
23 | extern const uint8_t resource_lcd_logo[]; | 22 | extern const uint8_t resource_lcd_logo[]; |
24 | #endif | 23 | #endif |
25 | |||
26 | #endif /* QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ */ | ||
diff --git a/quantum/visualizer/visualizer.h b/quantum/visualizer/visualizer.h index 488d130de..627c80a30 100644 --- a/quantum/visualizer/visualizer.h +++ b/quantum/visualizer/visualizer.h | |||
@@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
22 | SOFTWARE. | 22 | SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef VISUALIZER_H | 25 | #pragma once |
26 | #define VISUALIZER_H | 26 | |
27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
28 | #include <stdint.h> | 28 | #include <stdint.h> |
29 | #include <stdbool.h> | 29 | #include <stdbool.h> |
@@ -152,5 +152,3 @@ void user_visualizer_suspend(visualizer_state_t* state); | |||
152 | void initialize_user_visualizer(visualizer_state_t* state); | 152 | void initialize_user_visualizer(visualizer_state_t* state); |
153 | // Called when the computer resumes from a suspend | 153 | // Called when the computer resumes from a suspend |
154 | void user_visualizer_resume(visualizer_state_t* state); | 154 | void user_visualizer_resume(visualizer_state_t* state); |
155 | |||
156 | #endif /* VISUALIZER_H */ | ||
diff --git a/quantum/visualizer/visualizer_keyframes.h b/quantum/visualizer/visualizer_keyframes.h index 9ef7653c5..c92ff1611 100644 --- a/quantum/visualizer/visualizer_keyframes.h +++ b/quantum/visualizer/visualizer_keyframes.h | |||
@@ -14,13 +14,10 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ | 17 | #pragma once |
18 | #define QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ | ||
19 | 18 | ||
20 | #include "visualizer.h" | 19 | #include "visualizer.h" |
21 | 20 | ||
22 | // Some predefined keyframe functions that can be used by the user code | 21 | // Some predefined keyframe functions that can be used by the user code |
23 | // Does nothing, useful for adding delays | 22 | // Does nothing, useful for adding delays |
24 | bool keyframe_no_operation(keyframe_animation_t* animation, visualizer_state_t* state); | 23 | bool keyframe_no_operation(keyframe_animation_t* animation, visualizer_state_t* state); |
25 | |||
26 | #endif /* QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ */ | ||