aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/avr
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-12-26 15:56:11 +1100
committerGitHub <noreply@github.com>2020-12-26 15:56:11 +1100
commit1d1d5da43f86d9dded47c66afec94991d623f114 (patch)
tree5f0d4d303a1f5dd67a3d9a19b0f99b8e3f06a4e6 /tmk_core/common/avr
parent48f4768d33313e6a6ed48c31f95eb44feda10a51 (diff)
downloadqmk_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/avr')
-rw-r--r--tmk_core/common/avr/suspend_avr.h5
-rw-r--r--tmk_core/common/avr/timer_avr.h5
-rw-r--r--tmk_core/common/avr/xprintf.h5
3 files changed, 3 insertions, 12 deletions
diff --git a/tmk_core/common/avr/suspend_avr.h b/tmk_core/common/avr/suspend_avr.h
index e4cc0be50..6df048f3b 100644
--- a/tmk_core/common/avr/suspend_avr.h
+++ b/tmk_core/common/avr/suspend_avr.h
@@ -1,5 +1,4 @@
1#ifndef SUSPEND_AVR_H 1#pragma once
2#define SUSPEND_AVR_H
3 2
4#include <stdint.h> 3#include <stdint.h>
5#include <stdbool.h> 4#include <stdbool.h>
@@ -24,5 +23,3 @@ __asm__ __volatile__ ( \
24 : "r0" \ 23 : "r0" \
25) 24)
26// clang-format on 25// clang-format on
27
28#endif
diff --git a/tmk_core/common/avr/timer_avr.h b/tmk_core/common/avr/timer_avr.h
index 9aea21c65..c1b726bd0 100644
--- a/tmk_core/common/avr/timer_avr.h
+++ b/tmk_core/common/avr/timer_avr.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef TIMER_AVR_H 18#pragma once
19#define TIMER_AVR_H 1
20 19
21#include <stdint.h> 20#include <stdint.h>
22 21
@@ -38,5 +37,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
38#if (TIMER_RAW_TOP > 255) 37#if (TIMER_RAW_TOP > 255)
39# error "Timer0 can't count 1ms at this clock freq. Use larger prescaler." 38# error "Timer0 can't count 1ms at this clock freq. Use larger prescaler."
40#endif 39#endif
41
42#endif
diff --git a/tmk_core/common/avr/xprintf.h b/tmk_core/common/avr/xprintf.h
index 70e0f8e48..80834f171 100644
--- a/tmk_core/common/avr/xprintf.h
+++ b/tmk_core/common/avr/xprintf.h
@@ -2,8 +2,7 @@
2 Extended itoa, puts and printf (C)ChaN, 2011 2 Extended itoa, puts and printf (C)ChaN, 2011
3-----------------------------------------------------------------------------*/ 3-----------------------------------------------------------------------------*/
4 4
5#ifndef XPRINTF_H 5#pragma once
6#define XPRINTF_H
7 6
8#include <inttypes.h> 7#include <inttypes.h>
9#include <avr/pgmspace.h> 8#include <avr/pgmspace.h>
@@ -102,5 +101,3 @@ char xatoi(char **str, long *ret);
102#ifdef __cplusplus 101#ifdef __cplusplus
103} 102}
104#endif 103#endif
105
106#endif