Skip to content

Commit 2002495

Browse files
committed
import interrupt.h in Arduino.h and add a declaration test
1 parent 3a2f644 commit 2002495

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <ArduinoUnitTests.h>
2+
#include <Arduino.h>
3+
4+
ISR (WDT_vect) {
5+
}
6+
7+
unittest_main()

cpp/arduino/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ typedef uint8_t byte;
2424
// Math and Trig
2525
#include "AvrMath.h"
2626

27+
#include <avr/interrupt.h>
28+
2729
#include "Godmode.h"
2830

2931

cpp/arduino/avr/interrupt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
extern "C" void vector (void) __VA_ARGS__; \
88
void vector (void)
99

10-
#endif
10+
#endif // _AVR_INTERRUPT_H_

cpp/arduino/avr/wdt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef _AVR_WDT_H_
22
#define _AVR_WDT_H_
33

4-
#include <avr/interrupt.h>
54
#include <Godmode.h>
65

76
#define WDTO_15MS 0

0 commit comments

Comments
 (0)