8000 Update HardwareTimer.h documentation. · ArduinoWorks/Arduino_STM32@e961f5b · GitHub
[go: up one dir, main page]

Skip to content

Commit e961f5b

Browse files
authored
Update HardwareTimer.h documentation.
"attachInterrupt" and "attachInterrupt" functions can attach ISRs to channel 0, which is overflow interrupt (update interrupt in RMs).
1 parent a7503e1 commit e961f5b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

STM32F1/cores/maple/HardwareTimer.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ class HardwareTimer {
177177
* This interrupt handler will be called when the timer's counter
178178
* reaches the given channel compare value.
179179
*
180-
* @param channel the channel to attach the ISR to, from 1 to 4.
180+
* @param channel the channel to attach the ISR to, from 0 to 4.
181+
* Channel 0 is for overflow interrupt (update interrupt).
181182
* @param handler The ISR to attach to the given channel.
182183
* @see voidFuncPtr
183184
*/
@@ -189,7 +190,8 @@ class HardwareTimer {
189190
*
190191
* The handler will no longer be called by this timer.
191192
*
192-
* @param channel the channel whose interrupt to detach, from 1 to 4.
193+
* @param channel the channel whose interrupt to detach, from 0 to 4.
194+
* Channel 0 is for overflow interrupt (update interrupt).
193195
* @see HardwareTimer::attachInterrupt()
194196
*/
195197
void detachInterrupt(int channel);

0 commit comments

Comments
 (0)
0