diff options
| author | Ryan <fauxpark@gmail.com> | 2023-07-16 23:42:56 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-16 23:42:56 +1000 |
| commit | da2d2f947d5c30aebea17f414fb22ad50fe5410b (patch) | |
| tree | fdf2ed307ddb8f32ecb9ef7444ecfdf7ff7b4904 /quantum/process_keycode | |
| parent | b9e5895184c6d36b46ba723d6d71e27249e70c20 (diff) | |
quantum: remove direct `quantum.h` includes (#21507)
Diffstat (limited to 'quantum/process_keycode')
| -rw-r--r-- | quantum/process_keycode/process_audio.c | 4 | ||||
| -rw-r--r-- | quantum/process_keycode/process_audio.h | 3 | ||||
| -rw-r--r-- | quantum/process_keycode/process_clicky.c | 4 | ||||
| -rw-r--r-- | quantum/process_keycode/process_key_override.c | 4 |
4 files changed, 8 insertions, 7 deletions
diff --git a/quantum/process_keycode/process_audio.c b/quantum/process_keycode/process_audio.c index c189dd02b7..ef2f52c9f1 100644 --- a/quantum/process_keycode/process_audio.c +++ b/quantum/process_keycode/process_audio.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #include "audio.h" | 1 | #include "audio.h" |
| 2 | #include "process_audio.h" | 2 | #include "process_audio.h" |
| 3 | #include <math.h> | ||
| 3 | 4 | ||
| 4 | #ifndef VOICE_CHANGE_SONG | 5 | #ifndef VOICE_CHANGE_SONG |
| 5 | # define VOICE_CHANGE_SONG SONG(VOICE_CHANGE_SOUND) | 6 | # define VOICE_CHANGE_SONG SONG(VOICE_CHANGE_SOUND) |
| @@ -61,6 +62,3 @@ void process_audio_noteoff(uint8_t note) { | |||
| 61 | void process_audio_all_notes_off(void) { | 62 | void process_audio_all_notes_off(void) { |
| 62 | stop_all_notes(); | 63 | stop_all_notes(); |
| 63 | } | 64 | } |
| 64 | |||
| 65 | __attribute__((weak)) void audio_on_user(void) {} | ||
| 66 | __attribute__((weak)) void audio_off_user(void) {} | ||
diff --git a/quantum/process_keycode/process_audio.h b/quantum/process_keycode/process_audio.h index c80136f2c2..69e201e447 100644 --- a/quantum/process_keycode/process_audio.h +++ b/quantum/process_keycode/process_audio.h | |||
| @@ -10,6 +10,3 @@ bool process_audio(uint16_t keycode, keyrecord_t *record); | |||
| 10 | void process_audio_noteon(uint8_t note); | 10 | void process_audio_noteon(uint8_t note); |
| 11 | void process_audio_noteoff(uint8_t note); | 11 | void process_audio_noteoff(uint8_t note); |
| 12 | void process_audio_all_notes_off(void); | 12 | void process_audio_all_notes_off(void); |
| 13 | |||
| 14 | void audio_on_user(void); | ||
| 15 | void audio_off_user(void); | ||
diff --git a/quantum/process_keycode/process_clicky.c b/quantum/process_keycode/process_clicky.c index b662a3f2f4..0ee58282e6 100644 --- a/quantum/process_keycode/process_clicky.c +++ b/quantum/process_keycode/process_clicky.c | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | #include "audio.h" | ||
| 2 | #include "process_clicky.h" | 1 | #include "process_clicky.h" |
| 2 | #include "audio.h" | ||
| 3 | #include "eeconfig.h" | ||
| 4 | #include <stdlib.h> | ||
| 3 | 5 | ||
| 4 | #ifdef AUDIO_CLICKY | 6 | #ifdef AUDIO_CLICKY |
| 5 | 7 | ||
diff --git a/quantum/process_keycode/process_key_override.c b/quantum/process_keycode/process_key_override.c index 6ce1e4d925..264e2562b8 100644 --- a/quantum/process_keycode/process_key_override.c +++ b/quantum/process_keycode/process_key_override.c | |||
| @@ -19,6 +19,10 @@ | |||
| 19 | #include "report.h" | 19 | #include "report.h" |
| 20 | #include "timer.h" | 20 | #include "timer.h" |
| 21 | #include "debug.h" | 21 | #include "debug.h" |
| 22 | #include "wait.h" | ||
| 23 | #include "action_util.h" | ||
| 24 | #include "quantum.h" | ||
| 25 | #include "quantum_keycodes.h" | ||
| 22 | 26 | ||
| 23 | #ifndef KEY_OVERRIDE_REPEAT_DELAY | 27 | #ifndef KEY_OVERRIDE_REPEAT_DELAY |
| 24 | # define KEY_OVERRIDE_REPEAT_DELAY 500 | 28 | # define KEY_OVERRIDE_REPEAT_DELAY 500 |
