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/split_common | |
| parent | b9e5895184c6d36b46ba723d6d71e27249e70c20 (diff) | |
quantum: remove direct `quantum.h` includes (#21507)
Diffstat (limited to 'quantum/split_common')
| -rw-r--r-- | quantum/split_common/split_util.c | 2 | ||||
| -rw-r--r-- | quantum/split_common/split_util.h | 1 | ||||
| -rw-r--r-- | quantum/split_common/transactions.c | 39 | ||||
| -rw-r--r-- | quantum/split_common/transactions.h | 4 | ||||
| -rw-r--r-- | quantum/split_common/transport.h | 4 |
5 files changed, 43 insertions, 7 deletions
diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c index a431383454..87838c3195 100644 --- a/quantum/split_common/split_util.c +++ b/quantum/split_common/split_util.c | |||
| @@ -18,8 +18,8 @@ | |||
| 18 | #include "keyboard.h" | 18 | #include "keyboard.h" |
| 19 | #include "timer.h" | 19 | #include "timer.h" |
| 20 | #include "transport.h" | 20 | #include "transport.h" |
| 21 | #include "quantum.h" | ||
| 22 | #include "wait.h" | 21 | #include "wait.h" |
| 22 | #include "debug.h" | ||
| 23 | #include "usb_util.h" | 23 | #include "usb_util.h" |
| 24 | 24 | ||
| 25 | #ifdef EE_HANDS | 25 | #ifdef EE_HANDS |
diff --git a/quantum/split_common/split_util.h b/quantum/split_common/split_util.h index 5c9a260a14..ab42c85e9f 100644 --- a/quantum/split_common/split_util.h +++ b/quantum/split_common/split_util.h | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
| 4 | #include <stdint.h> | 4 | #include <stdint.h> |
| 5 | #include <stdlib.h> | ||
| 6 | 5 | ||
| 7 | #include "matrix.h" | 6 | #include "matrix.h" |
| 8 | 7 | ||
diff --git a/quantum/split_common/transactions.c b/quantum/split_common/transactions.c index 8cd018a6ec..2b9423cd63 100644 --- a/quantum/split_common/transactions.c +++ b/quantum/split_common/transactions.c | |||
| @@ -20,13 +20,50 @@ | |||
| 20 | #include "crc.h" | 20 | #include "crc.h" |
| 21 | #include "debug.h" | 21 | #include "debug.h" |
| 22 | #include "matrix.h" | 22 | #include "matrix.h" |
| 23 | #include "quantum.h" | 23 | #include "host.h" |
| 24 | #include "action_util.h" | ||
| 25 | #include "sync_timer.h" | ||
| 26 | #include "wait.h" | ||
| 24 | #include "transactions.h" | 27 | #include "transactions.h" |
| 25 | #include "transport.h" | 28 | #include "transport.h" |
| 26 | #include "transaction_id_define.h" | 29 | #include "transaction_id_define.h" |
| 27 | #include "split_util.h" | 30 | #include "split_util.h" |
| 28 | #include "synchronization_util.h" | 31 | #include "synchronization_util.h" |
| 29 | 32 | ||
| 33 | #ifdef BACKLIGHT_ENABLE | ||
| 34 | # include "backlight.h" | ||
| 35 | #endif | ||
| 36 | #ifdef RGBLIGHT_ENABLE | ||
| 37 | # include "rgblight.h" | ||
| 38 | #endif | ||
| 39 | #ifdef LED_MATRIX_ENABLE | ||
| 40 | # include "led_matrix.h" | ||
| 41 | #endif | ||
| 42 | #ifdef RGB_MATRIX_ENABLE | ||
| 43 | # include "rgb_matrix.h" | ||
| 44 | #endif | ||
| 45 | #ifdef OLED_ENABLE | ||
| 46 | # include "oled_driver.h" | ||
| 47 | #endif | ||
| 48 | #ifdef ST7565_ENABLE | ||
| 49 | # include "st7565.h" | ||
| 50 | #endif | ||
| 51 | #ifdef ENCODER_ENABLE | ||
| 52 | # include "encoder.h" | ||
| 53 | #endif | ||
| 54 | #ifdef HAPTIC_ENABLE | ||
| 55 | # include "haptic.h" | ||
| 56 | #endif | ||
| 57 | #ifdef POINTING_DEVICE_ENABLE | ||
| 58 | # include "pointing_device.h" | ||
| 59 | #endif | ||
| 60 | #ifdef OS_DETECTION_ENABLE | ||
| 61 | # include "os_detection.h" | ||
| 62 | #endif | ||
| 63 | #ifdef WPM_ENABLE | ||
| 64 | # include "wpm.h" | ||
| 65 | #endif | ||
| 66 | |||
| 30 | #define SYNC_TIMER_OFFSET 2 | 67 | #define SYNC_TIMER_OFFSET 2 |
| 31 | 68 | ||
| 32 | #ifndef FORCED_SYNC_THROTTLE_MS | 69 | #ifndef FORCED_SYNC_THROTTLE_MS |
diff --git a/quantum/split_common/transactions.h b/quantum/split_common/transactions.h index e38ec79ce9..af3e68a15f 100644 --- a/quantum/split_common/transactions.h +++ b/quantum/split_common/transactions.h | |||
| @@ -16,8 +16,8 @@ | |||
| 16 | 16 | ||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | #include "stdint.h" | 19 | #include <stdint.h> |
| 20 | #include "stdbool.h" | 20 | #include <stdbool.h> |
| 21 | 21 | ||
| 22 | #include "matrix.h" | 22 | #include "matrix.h" |
| 23 | #include "transaction_id_define.h" | 23 | #include "transaction_id_define.h" |
diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h index a3d6f1dfe9..2e2b918d45 100644 --- a/quantum/split_common/transport.h +++ b/quantum/split_common/transport.h | |||
| @@ -16,8 +16,8 @@ | |||
| 16 | 16 | ||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | #include "stdint.h" | 19 | #include <stdint.h> |
| 20 | #include "stdbool.h" | 20 | #include <stdbool.h> |
| 21 | 21 | ||
| 22 | #include "progmem.h" | 22 | #include "progmem.h" |
| 23 | #include "action_layer.h" | 23 | #include "action_layer.h" |
