Skip to content

Commit 7e3eedc

Browse files
committed
move ISR declaration check to interrupts.cpp and add explanation
1 parent 364da41 commit 7e3eedc

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

SampleProjects/TestSomething/test/interrupts.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ unittest(interrupt_attachment) {
2323
assertFalse(state->interrupt[0].attached);
2424
}
2525

26-
26+
// Just check if declaration compiles.
27+
// WDT_vect defines the interrupt of the watchdog timer
28+
// if configured accordinly.
29+
// See avr/interrupt.h
30+
ISR (WDT_vect) {
31+
}
2732

2833
unittest_main()

SampleProjects/TestSomething/test/isr_declaration.cpp

-8
This file was deleted.

0 commit comments

Comments
 (0)