diff options
Diffstat (limited to 'quantum/process_keycode')
| -rw-r--r-- | quantum/process_keycode/process_audio.h | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_clicky.h | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_combo.h | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_key_lock.h | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_leader.h | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_midi.h | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_music.h | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_printer.h | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_steno.h | 6 | ||||
| -rw-r--r-- | quantum/process_keycode/process_tap_dance.h | 6 | ||||
| -rw-r--r-- | quantum/process_keycode/process_terminal.h | 5 | ||||
| -rw-r--r-- | quantum/process_keycode/process_terminal_nop.h | 5 |
12 files changed, 14 insertions, 48 deletions
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 | ||
