From 501f2fdef115314713e94428d409e5c3b5bfc1c2 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 11 Dec 2020 13:45:24 +1100 Subject: Normalise include statements in core code (#11153) * Normalise include statements in core code * Missed one --- quantum/audio/audio_chibios.c | 4 ++-- quantum/audio/luts.h | 4 ++-- quantum/fauxclicky.c | 6 +++--- quantum/fauxclicky.h | 2 +- quantum/keymap.h | 2 +- quantum/process_keycode/process_key_lock.c | 4 ++-- quantum/quantum.h | 2 +- quantum/rgb_matrix.c | 2 +- quantum/rgblight.c | 6 +++--- quantum/serial_link/system/serial_link.c | 2 +- quantum/serial_link/system/serial_link.h | 2 +- quantum/split_common/split_util.c | 2 +- quantum/split_common/transport.h | 2 +- quantum/via.h | 2 +- quantum/visualizer/lcd_backlight.h | 2 +- quantum/visualizer/led_backlight_keyframes.c | 2 +- quantum/visualizer/visualizer.c | 2 +- 17 files changed, 24 insertions(+), 24 deletions(-) (limited to 'quantum') diff --git a/quantum/audio/audio_chibios.c b/quantum/audio/audio_chibios.c index fba7c59873..1f147f2c92 100644 --- a/quantum/audio/audio_chibios.c +++ b/quantum/audio/audio_chibios.c @@ -15,8 +15,8 @@ */ #include "audio.h" -#include "ch.h" -#include "hal.h" +#include +#include #include #include "print.h" diff --git a/quantum/audio/luts.h b/quantum/audio/luts.h index 117d74cd00..6fdd3b4635 100644 --- a/quantum/audio/luts.h +++ b/quantum/audio/luts.h @@ -19,8 +19,8 @@ # include # include #else -# include "ch.h" -# include "hal.h" +# include +# include #endif #ifndef LUTS_H diff --git a/quantum/fauxclicky.c b/quantum/fauxclicky.c index a57e2ed075..53499c9c1e 100644 --- a/quantum/fauxclicky.c +++ b/quantum/fauxclicky.c @@ -15,10 +15,10 @@ along with this program. If not, see . #include #include -#include -#include +#include "timer.h" +#include "fauxclicky.h" #include -#include +#include "musical_notes.h" bool fauxclicky_enabled = true; uint16_t note_start = 0; diff --git a/quantum/fauxclicky.h b/quantum/fauxclicky.h index 5c056918a7..bfaacf9096 100644 --- a/quantum/fauxclicky.h +++ b/quantum/fauxclicky.h @@ -18,7 +18,7 @@ along with this program. If not, see . #endif #include "musical_notes.h" -#include "stdbool.h" +#include __attribute__((weak)) float fauxclicky_pressed_note[2] = MUSICAL_NOTE(_D4, 0.25); __attribute__((weak)) float fauxclicky_released_note[2] = MUSICAL_NOTE(_C4, 0.125); diff --git a/quantum/keymap.h b/quantum/keymap.h index de3bece11e..90a2398ba4 100644 --- a/quantum/keymap.h +++ b/quantum/keymap.h @@ -25,7 +25,7 @@ along with this program. If not, see . # include #elif defined PROTOCOL_CHIBIOS // We need to ensure that chibios is include before redefining reset -# include "ch.h" +# include #endif #include "keycode.h" #include "action_macro.h" diff --git a/quantum/process_keycode/process_key_lock.c b/quantum/process_keycode/process_key_lock.c index 602127a74b..4bd58f0c1e 100644 --- a/quantum/process_keycode/process_key_lock.c +++ b/quantum/process_keycode/process_key_lock.c @@ -14,8 +14,8 @@ * along with this program. If not, see . */ -#include "inttypes.h" -#include "stdint.h" +#include +#include #include "process_key_lock.h" #define BV_64(shift) (((uint64_t)1) << (shift)) diff --git a/quantum/quantum.h b/quantum/quantum.h index cb0af306ac..3e09df4f88 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -21,7 +21,7 @@ # include #endif #if defined(PROTOCOL_CHIBIOS) -# include "hal.h" +# include # include "chibios_config.h" #endif diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index f239bd582f..c756857ae3 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c @@ -23,7 +23,7 @@ #include #include -#include "lib/lib8tion/lib8tion.h" +#include #ifndef RGB_MATRIX_CENTER const point_t k_rgb_matrix_center = {112, 32}; diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 7f9e330d37..e6f14487c1 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -24,7 +24,7 @@ # include "eeprom.h" #endif #ifdef STM32_EEPROM_ENABLE -# include "hal.h" +# include # include "eeprom_stm32.h" #endif #include "wait.h" @@ -34,7 +34,7 @@ #include "color.h" #include "debug.h" #include "led_tables.h" -#include "lib/lib8tion/lib8tion.h" +#include #ifdef VELOCIKEY_ENABLE # include "velocikey.h" #endif @@ -983,7 +983,7 @@ void rgblight_task(void) { # ifndef RGBLIGHT_BREATHE_TABLE_SIZE # define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256 or 128 or 64 # endif -# include +# include "rgblight_breathe_table.h" # endif __attribute__((weak)) const uint8_t RGBLED_BREATHING_INTERVALS[] PROGMEM = {30, 20, 10, 5}; diff --git a/quantum/serial_link/system/serial_link.c b/quantum/serial_link/system/serial_link.c index c59c068944..f77483ad8c 100644 --- a/quantum/serial_link/system/serial_link.c +++ b/quantum/serial_link/system/serial_link.c @@ -24,7 +24,7 @@ SOFTWARE. #include "report.h" #include "host_driver.h" #include "serial_link/system/serial_link.h" -#include "hal.h" +#include #include "serial_link/protocol/byte_stuffer.h" #include "serial_link/protocol/transport.h" #include "serial_link/protocol/frame_router.h" diff --git a/quantum/serial_link/system/serial_link.h b/quantum/serial_link/system/serial_link.h index f48fbe9ea7..b6a4739575 100644 --- a/quantum/serial_link/system/serial_link.h +++ b/quantum/serial_link/system/serial_link.h @@ -36,7 +36,7 @@ host_driver_t* get_serial_link_driver(void); void serial_link_update(void); #if defined(PROTOCOL_CHIBIOS) -# include "ch.h" +# include static inline void serial_link_lock(void) { chSysLock(); } diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c index e8e944d710..97d49961dc 100644 --- a/quantum/split_common/split_util.c +++ b/quantum/split_common/split_util.c @@ -12,7 +12,7 @@ #endif #ifdef PROTOCOL_VUSB -# include "usbdrv.h" +# include #endif #ifdef EE_HANDS diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h index ccce57e444..f3e752bf9b 100644 --- a/quantum/split_common/transport.h +++ b/quantum/split_common/transport.h @@ -1,6 +1,6 @@ #pragma once -#include +#include "common/matrix.h" void transport_master_init(void); void transport_slave_init(void); diff --git a/quantum/via.h b/quantum/via.h index 373843f901..d0510fcabd 100644 --- a/quantum/via.h +++ b/quantum/via.h @@ -16,7 +16,7 @@ #pragma once -#include // for EECONFIG_SIZE +#include "tmk_core/common/eeconfig.h" // for EECONFIG_SIZE // Keyboard level code can change where VIA stores the magic. // The magic is the build date YYMMDD encoded as BCD in 3 bytes, diff --git a/quantum/visualizer/lcd_backlight.h b/quantum/visualizer/lcd_backlight.h index 7b0b6a9fd5..0a1535edf5 100644 --- a/quantum/visualizer/lcd_backlight.h +++ b/quantum/visualizer/lcd_backlight.h @@ -24,7 +24,7 @@ SOFTWARE. #ifndef LCD_BACKLIGHT_H_ #define LCD_BACKLIGHT_H_ -#include "stdint.h" +#include // Helper macros for storing hue, staturation and intensity as unsigned integers #define LCD_COLOR(hue, saturation, intensity) (hue << 16 | saturation << 8 | intensity) diff --git a/quantum/visualizer/led_backlight_keyframes.c b/quantum/visualizer/led_backlight_keyframes.c index d81117d2be..338ada5227 100644 --- a/quantum/visualizer/led_backlight_keyframes.c +++ b/quantum/visualizer/led_backlight_keyframes.c @@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "gfx.h" -#include "math.h" +#include #include "led_backlight_keyframes.h" static uint8_t fade_led_color(keyframe_animation_t* animation, int from, int to) { diff --git a/quantum/visualizer/visualizer.c b/quantum/visualizer/visualizer.c index 9e9cb6d410..709affbb77 100644 --- a/quantum/visualizer/visualizer.c +++ b/quantum/visualizer/visualizer.c @@ -26,7 +26,7 @@ SOFTWARE. #include "visualizer.h" #include #ifdef PROTOCOL_CHIBIOS -# include "ch.h" +# include #endif #include "gfx.h" -- cgit v1.2.3