File tree 4 files changed +4
-16
lines changed
4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 1
- #ifndef _AVR_ADC_H_
2
- #define _AVR_ADC_H_
1
+ #pragma once
3
2
4
3
// mock storage to allow access to ADCSRA
5
4
extern unsigned char sfr_store ;
6
5
#define _SFR_MEM8 (mem_addr ) sfr_store
7
-
8
- #endif // _AVR_ADC_H_
Original file line number Diff line number Diff line change 1
- #ifndef _AVR_INTERRUPT_H_
2
- #define _AVR_INTERRUPT_H_
1
+ #pragma once
3
2
4
3
// allows the production code to define an ISR method
5
4
#define _VECTOR (N ) __vector_ ## N
6
5
#define ISR (vector , ...) \
7
6
extern "C" void vector (void) __VA_ARGS__; \
8
7
void vector (void)
9
-
10
- #endif // _AVR_INTERRUPT_H_
Original file line number Diff line number Diff line change 1
- #ifndef _AVR_SLEEP_H_
2
- #define _AVR_SLEEP_H_
1
+ #pragma once
3
2
4
3
#include <Godmode.h>
5
4
@@ -36,5 +35,3 @@ void sleep_mode() {
36
35
godmode -> sleep .sleep_mode_count ++ ;
37
36
sleep_disable ();
38
37
}
39
-
40
- #endif /* _AVR_SLEEP_H_ */
Original file line number Diff line number Diff line change 1
- #ifndef _AVR_WDT_H_
2
- #define _AVR_WDT_H_
1
+ #pragma once
3
2
4
3
#include <Godmode.h>
5
4
@@ -31,5 +30,3 @@ void wdt_reset() {
31
30
GodmodeState * godmode = GODMODE ();
32
31
godmode -> wdt .wdt_reset_count ++ ;
33
32
}
34
-
35
- #endif /* _AVR_WDT_H_ */
You can’t perform that action at this time.
0 commit comments