You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cores/arduino/HardwareTimer.h
+2
Original file line number
Diff line number
Diff line change
@@ -110,9 +110,11 @@ class HardwareTimer {
110
110
//Add interrupt to period update
111
111
voidattachInterrupt(void (*handler)(HardwareTimer *)); // Attach interrupt callback which will be called upon update event (timer rollover)
112
112
voiddetachInterrupt(); // remove interrupt callback which was attached to update event
113
+
boolhasInterrupt(); //returns true if a timer rollover interrupt has already been set
113
114
//Add interrupt to capture/compare channel
114
115
voidattachInterrupt(uint32_t channel, void (*handler)(HardwareTimer *)); // Attach interrupt callback which will be called upon compare match event of specified channel
115
116
voiddetachInterrupt(uint32_t channel); // remove interrupt callback which was attached to compare match event of specified channel
117
+
boolhasInterrupt(uint32_t channel); //returns true if an interrupt has already been set on the channel compare match
0 commit comments