diff options
| author | Ryan <fauxpark@gmail.com> | 2020-12-26 15:56:11 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-26 15:56:11 +1100 |
| commit | 1d1d5da43f86d9dded47c66afec94991d623f114 (patch) | |
| tree | 5f0d4d303a1f5dd67a3d9a19b0f99b8e3f06a4e6 /tmk_core/common/chibios | |
| parent | 48f4768d33313e6a6ed48c31f95eb44feda10a51 (diff) | |
| download | qmk_firmware-1d1d5da43f86d9dded47c66afec94991d623f114.tar.gz qmk_firmware-1d1d5da43f86d9dded47c66afec94991d623f114.zip | |
Change include guards in tmk_core/ and drivers/ to pragma once (#11240)
Diffstat (limited to 'tmk_core/common/chibios')
| -rw-r--r-- | tmk_core/common/chibios/eeprom_stm32.h | 5 | ||||
| -rw-r--r-- | tmk_core/common/chibios/flash_stm32.h | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/tmk_core/common/chibios/eeprom_stm32.h b/tmk_core/common/chibios/eeprom_stm32.h index 373325cd2..4dac7c1b5 100644 --- a/tmk_core/common/chibios/eeprom_stm32.h +++ b/tmk_core/common/chibios/eeprom_stm32.h | |||
| @@ -21,8 +21,7 @@ | |||
| 21 | * This library also assumes that the pages are not used by the firmware. | 21 | * This library also assumes that the pages are not used by the firmware. |
| 22 | */ | 22 | */ |
| 23 | 23 | ||
| 24 | #ifndef __EEPROM_H | 24 | #pragma once |
| 25 | #define __EEPROM_H | ||
| 26 | 25 | ||
| 27 | #include <ch.h> | 26 | #include <ch.h> |
| 28 | #include <hal.h> | 27 | #include <hal.h> |
| @@ -83,5 +82,3 @@ uint16_t EEPROM_Init(void); | |||
| 83 | void EEPROM_Erase(void); | 82 | void EEPROM_Erase(void); |
| 84 | uint16_t EEPROM_WriteDataByte(uint16_t Address, uint8_t DataByte); | 83 | uint16_t EEPROM_WriteDataByte(uint16_t Address, uint8_t DataByte); |
| 85 | uint8_t EEPROM_ReadDataByte(uint16_t Address); | 84 | uint8_t EEPROM_ReadDataByte(uint16_t Address); |
| 86 | |||
| 87 | #endif /* __EEPROM_H */ | ||
diff --git a/tmk_core/common/chibios/flash_stm32.h b/tmk_core/common/chibios/flash_stm32.h index 8a874f606..90d5bff47 100644 --- a/tmk_core/common/chibios/flash_stm32.h +++ b/tmk_core/common/chibios/flash_stm32.h | |||
| @@ -16,8 +16,7 @@ | |||
| 16 | * Modifications for QMK and STM32F303 by Yiancar | 16 | * Modifications for QMK and STM32F303 by Yiancar |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #ifndef __FLASH_STM32_H | 19 | #pragma once |
| 20 | #define __FLASH_STM32_H | ||
| 21 | 20 | ||
| 22 | #ifdef __cplusplus | 21 | #ifdef __cplusplus |
| 23 | extern "C" { | 22 | extern "C" { |
| @@ -41,5 +40,3 @@ void FLASH_ClearFlag(uint32_t FLASH_FLAG); | |||
| 41 | #ifdef __cplusplus | 40 | #ifdef __cplusplus |
| 42 | } | 41 | } |
| 43 | #endif | 42 | #endif |
| 44 | |||
| 45 | #endif /* __FLASH_STM32_H */ | ||
