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 --- tmk_core/common/action.c | 2 +- tmk_core/common/chibios/bootloader.c | 4 ++-- tmk_core/common/chibios/eeprom_stm32.h | 4 ++-- tmk_core/common/chibios/eeprom_teensy.c | 4 ++-- tmk_core/common/chibios/flash_stm32.h | 4 ++-- tmk_core/common/chibios/sleep_led.c | 4 ++-- tmk_core/common/chibios/suspend.c | 4 ++-- tmk_core/common/chibios/timer.c | 2 +- tmk_core/common/eeconfig.c | 2 +- tmk_core/common/wait.h | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) (limited to 'tmk_core/common') diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index 77da0139f2..a7432bae59 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -48,7 +48,7 @@ int retro_tapping_counter = 0; #endif #ifdef FAUXCLICKY_ENABLE -# include +# include "fauxclicky.h" #endif #ifdef IGNORE_MOD_TAP_INTERRUPT_PER_KEY diff --git a/tmk_core/common/chibios/bootloader.c b/tmk_core/common/chibios/bootloader.c index f6d016ec9d..6cabcc4b81 100644 --- a/tmk_core/common/chibios/bootloader.c +++ b/tmk_core/common/chibios/bootloader.c @@ -1,7 +1,7 @@ #include "bootloader.h" -#include "ch.h" -#include "hal.h" +#include +#include #include "wait.h" /* This code should be checked whether it runs correctly on platforms */ diff --git a/tmk_core/common/chibios/eeprom_stm32.h b/tmk_core/common/chibios/eeprom_stm32.h index ea0ce06400..373325cd2f 100644 --- a/tmk_core/common/chibios/eeprom_stm32.h +++ b/tmk_core/common/chibios/eeprom_stm32.h @@ -24,8 +24,8 @@ #ifndef __EEPROM_H #define __EEPROM_H -#include "ch.h" -#include "hal.h" +#include +#include #include "flash_stm32.h" // HACK ALERT. This definition may not match your processor diff --git a/tmk_core/common/chibios/eeprom_teensy.c b/tmk_core/common/chibios/eeprom_teensy.c index d436d0cb95..e135e19a21 100644 --- a/tmk_core/common/chibios/eeprom_teensy.c +++ b/tmk_core/common/chibios/eeprom_teensy.c @@ -1,5 +1,5 @@ -#include "ch.h" -#include "hal.h" +#include +#include #include "eeconfig.h" diff --git a/tmk_core/common/chibios/flash_stm32.h b/tmk_core/common/chibios/flash_stm32.h index 33ab7867da..8a874f6065 100644 --- a/tmk_core/common/chibios/flash_stm32.h +++ b/tmk_core/common/chibios/flash_stm32.h @@ -23,8 +23,8 @@ extern "C" { #endif -#include "ch.h" -#include "hal.h" +#include +#include typedef enum { FLASH_BUSY = 1, FLASH_ERROR_PG, FLASH_ERROR_WRP, FLASH_ERROR_OPT, FLASH_COMPLETE, FLASH_TIMEOUT, FLASH_BAD_ADDRESS } FLASH_Status; diff --git a/tmk_core/common/chibios/sleep_led.c b/tmk_core/common/chibios/sleep_led.c index df1a1b5fcd..18c6d6e170 100644 --- a/tmk_core/common/chibios/sleep_led.c +++ b/tmk_core/common/chibios/sleep_led.c @@ -1,5 +1,5 @@ -#include "ch.h" -#include "hal.h" +#include +#include #include "led.h" #include "sleep_led.h" diff --git a/tmk_core/common/chibios/suspend.c b/tmk_core/common/chibios/suspend.c index 64dfc05abc..24efb0ac4c 100644 --- a/tmk_core/common/chibios/suspend.c +++ b/tmk_core/common/chibios/suspend.c @@ -1,7 +1,7 @@ /* TODO */ -#include "ch.h" -#include "hal.h" +#include +#include #include "matrix.h" #include "action.h" diff --git a/tmk_core/common/chibios/timer.c b/tmk_core/common/chibios/timer.c index ac5a5af638..9f664e1f79 100644 --- a/tmk_core/common/chibios/timer.c +++ b/tmk_core/common/chibios/timer.c @@ -1,4 +1,4 @@ -#include "ch.h" +#include #include "timer.h" diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c index e15897552f..5e3ebe6ee6 100644 --- a/tmk_core/common/eeconfig.c +++ b/tmk_core/common/eeconfig.c @@ -5,7 +5,7 @@ #include "action_layer.h" #ifdef STM32_EEPROM_ENABLE -# include "hal.h" +# include # include "eeprom_stm32.h" #endif diff --git a/tmk_core/common/wait.h b/tmk_core/common/wait.h index c82cd2d65a..f5ef12ac07 100644 --- a/tmk_core/common/wait.h +++ b/tmk_core/common/wait.h @@ -12,7 +12,7 @@ extern "C" { # define wait_ms(ms) _delay_ms(ms) # define wait_us(us) _delay_us(us) #elif defined PROTOCOL_CHIBIOS -# include "ch.h" +# include # define wait_ms(ms) \ do { \ if (ms != 0) { \ -- cgit v1.2.1