diff options
| author | Ryan <fauxpark@gmail.com> | 2024-04-03 10:44:25 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-03 10:44:25 +1100 |
| commit | c635733a7fd48c6692d818ac8621571cbc5f470a (patch) | |
| tree | 93ecd160d846ed3b5cca3e4abe2f30441030ea55 /keyboards/wilba_tech | |
| parent | 408f6e43cd2522b6a4073bedcfbe2ee7df2603dd (diff) | |
Remove `quantum.h` includes from keyboard code (#23394)
Diffstat (limited to 'keyboards/wilba_tech')
| -rw-r--r-- | keyboards/wilba_tech/via_test.c | 1 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt_mono_backlight.c | 5 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt_mono_backlight.h | 1 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt_rgb_backlight.c | 14 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt_rgb_backlight.h | 1 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt_rgb_backlight_keycodes.h | 2 |
6 files changed, 11 insertions, 13 deletions
diff --git a/keyboards/wilba_tech/via_test.c b/keyboards/wilba_tech/via_test.c index 6a74df5164..314ec4472c 100644 --- a/keyboards/wilba_tech/via_test.c +++ b/keyboards/wilba_tech/via_test.c | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | // - add `#define VIA_EEPROM_CUSTOM_CONFIG_SIZE 128` to config.h | 14 | // - add `#define VIA_EEPROM_CUSTOM_CONFIG_SIZE 128` to config.h |
| 15 | // (or change to match CHANNELS*VALUES*2) | 15 | // (or change to match CHANNELS*VALUES*2) |
| 16 | 16 | ||
| 17 | #include "quantum.h" | ||
| 18 | #include "via.h" | 17 | #include "via.h" |
| 19 | 18 | ||
| 20 | #ifdef VIA_ENABLE | 19 | #ifdef VIA_ENABLE |
diff --git a/keyboards/wilba_tech/wt_mono_backlight.c b/keyboards/wilba_tech/wt_mono_backlight.c index 1523fbdb85..1426e09fc6 100644 --- a/keyboards/wilba_tech/wt_mono_backlight.c +++ b/keyboards/wilba_tech/wt_mono_backlight.c | |||
| @@ -14,16 +14,15 @@ | |||
| 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 | #include "quantum.h" | ||
| 18 | #include "wt_mono_backlight.h" | 17 | #include "wt_mono_backlight.h" |
| 19 | #include "wt_rgb_backlight_api.h" // reuse these for now | 18 | #include "wt_rgb_backlight_api.h" // reuse these for now |
| 20 | #include "wt_rgb_backlight_keycodes.h" // reuse these for now | 19 | #include "wt_rgb_backlight_keycodes.h" // reuse these for now |
| 21 | 20 | ||
| 21 | #include <stdlib.h> | ||
| 22 | #include <avr/interrupt.h> | 22 | #include <avr/interrupt.h> |
| 23 | #include "i2c_master.h" | 23 | #include "i2c_master.h" |
| 24 | 24 | #include "host.h" | |
| 25 | #include "progmem.h" | 25 | #include "progmem.h" |
| 26 | #include "quantum/color.h" | ||
| 27 | #include "eeprom.h" | 26 | #include "eeprom.h" |
| 28 | 27 | ||
| 29 | #include "via.h" // uses EEPROM address, lighting value IDs | 28 | #include "via.h" // uses EEPROM address, lighting value IDs |
diff --git a/keyboards/wilba_tech/wt_mono_backlight.h b/keyboards/wilba_tech/wt_mono_backlight.h index 9bf76b44bb..fb77ec66e1 100644 --- a/keyboards/wilba_tech/wt_mono_backlight.h +++ b/keyboards/wilba_tech/wt_mono_backlight.h | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <stdint.h> | 19 | #include <stdint.h> |
| 20 | #include <stdbool.h> | 20 | #include <stdbool.h> |
| 21 | 21 | ||
| 22 | #include "action.h" | ||
| 22 | #include "quantum/color.h" | 23 | #include "quantum/color.h" |
| 23 | 24 | ||
| 24 | typedef struct PACKED | 25 | typedef struct PACKED |
diff --git a/keyboards/wilba_tech/wt_rgb_backlight.c b/keyboards/wilba_tech/wt_rgb_backlight.c index d03d189b29..02bcdd610b 100644 --- a/keyboards/wilba_tech/wt_rgb_backlight.c +++ b/keyboards/wilba_tech/wt_rgb_backlight.c | |||
| @@ -40,19 +40,15 @@ | |||
| 40 | #error wt_rgb_backlight.c compiled without setting configuration symbol | 40 | #error wt_rgb_backlight.c compiled without setting configuration symbol |
| 41 | #endif | 41 | #endif |
| 42 | 42 | ||
| 43 | #ifndef MAX | ||
| 44 | #define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) | ||
| 45 | #endif | ||
| 46 | |||
| 47 | #ifndef MIN | ||
| 48 | #define MIN(a,b) ((a) < (b)? (a): (b)) | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #include "quantum.h" | ||
| 52 | #include "wt_rgb_backlight.h" | 43 | #include "wt_rgb_backlight.h" |
| 53 | #include "wt_rgb_backlight_api.h" | 44 | #include "wt_rgb_backlight_api.h" |
| 54 | #include "wt_rgb_backlight_keycodes.h" | 45 | #include "wt_rgb_backlight_keycodes.h" |
| 55 | 46 | ||
| 47 | #include <stdlib.h> | ||
| 48 | #include "quantum.h" | ||
| 49 | #include "host.h" | ||
| 50 | #include "util.h" | ||
| 51 | |||
| 56 | #if !defined(RGB_BACKLIGHT_HS60) && !defined(RGB_BACKLIGHT_NK65) && !defined(RGB_BACKLIGHT_NK87) && !defined(RGB_BACKLIGHT_NEBULA68) && !defined(RGB_BACKLIGHT_NEBULA12) && !defined (RGB_BACKLIGHT_KW_MEGA) | 52 | #if !defined(RGB_BACKLIGHT_HS60) && !defined(RGB_BACKLIGHT_NK65) && !defined(RGB_BACKLIGHT_NK87) && !defined(RGB_BACKLIGHT_NEBULA68) && !defined(RGB_BACKLIGHT_NEBULA12) && !defined (RGB_BACKLIGHT_KW_MEGA) |
| 57 | #include <avr/interrupt.h> | 53 | #include <avr/interrupt.h> |
| 58 | #include "i2c_master.h" | 54 | #include "i2c_master.h" |
diff --git a/keyboards/wilba_tech/wt_rgb_backlight.h b/keyboards/wilba_tech/wt_rgb_backlight.h index 6fb2ee2122..5662178197 100644 --- a/keyboards/wilba_tech/wt_rgb_backlight.h +++ b/keyboards/wilba_tech/wt_rgb_backlight.h | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include <stdint.h> | 23 | #include <stdint.h> |
| 24 | #include <stdbool.h> | 24 | #include <stdbool.h> |
| 25 | 25 | ||
| 26 | #include "action.h" | ||
| 26 | #include "quantum/color.h" | 27 | #include "quantum/color.h" |
| 27 | 28 | ||
| 28 | typedef struct PACKED | 29 | typedef struct PACKED |
diff --git a/keyboards/wilba_tech/wt_rgb_backlight_keycodes.h b/keyboards/wilba_tech/wt_rgb_backlight_keycodes.h index b8c23c4b07..79016744af 100644 --- a/keyboards/wilba_tech/wt_rgb_backlight_keycodes.h +++ b/keyboards/wilba_tech/wt_rgb_backlight_keycodes.h | |||
| @@ -15,6 +15,8 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #pragma once | 16 | #pragma once |
| 17 | 17 | ||
| 18 | #include "keycodes.h" | ||
| 19 | |||
| 18 | enum wt_rgb_backlight_keycodes { | 20 | enum wt_rgb_backlight_keycodes { |
| 19 | BR_INC = QK_KB_0, // brightness increase | 21 | BR_INC = QK_KB_0, // brightness increase |
| 20 | BR_DEC, // brightness decrease | 22 | BR_DEC, // brightness decrease |
