File tree 4 files changed +25
-2
lines changed
4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- // mock storage to allow access to ADCSRA
3
+ // ADCSRA is defined in the CPU specific header files
4
+ // like iom328p.h.
5
+ // It is liked to _SFR_MEM8 what does not exists in the test environment.
6
+ // Therefore we define _SFR_MEM8 here and provide it a storage
7
+ // location so that the test code can read/write on it.
4
8
extern unsigned char sfr_store ;
5
9
#define _SFR_MEM8 (mem_addr ) sfr_store
Original file line number Diff line number Diff line change
1
+ /*
2
+ This header file defines the macros required for the production
3
+ code for AVR CPUs to declare ISRs in the test environment.
4
+ See for more details
5
+ https://www.nongnu.org/avr-libc/user-manual/group__avr__interrupts.html
6
+ */
1
7
#pragma once
2
8
3
- // allows the production code to define an ISR method
9
+ // Allows the production code to define an ISR method.
10
+ // These definitions come from the original avr/interrupt.h file
11
+ // https://www.nongnu.org/avr-libc/user-manual/interrupt_8h_source.html
4
12
#define _VECTOR (N ) __vector_ ## N
5
13
#define ISR (vector , ...) \
6
14
extern "C" void vector (void) __VA_ARGS__; \
Original file line number Diff line number Diff line change
1
+ /*
2
+ This header file defines the functionality to put AVR CPUs to sleep mode.
3
+ For details see
4
+ https://www.nongnu.org/avr-libc/user-manual/group__avr__sleep.html
5
+ */
1
6
#pragma once
2
7
3
8
#include <Godmode.h>
Original file line number Diff line number Diff line change
1
+ /*
2
+ This header file defines the funtionality to use the watchdog timer on
3
+ AVR CPUs.
4
+ For details see
5
+ https://www.nongnu.org/avr-libc/user-manual/group__avr__watchdog.html
6
+ */
1
7
#pragma once
2
8
3
9
#include <Godmode.h>
You can’t perform that action at this time.
0 commit comments