Skip to content

Commit d9b2b7d

Browse files
authored
Merge pull request #15149 from 0xc0170/fix-issue-8188
InterruptIn: add note about enabling interrupts in rise/fall
2 parents 555f6be + 0a3b168 commit d9b2b7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/include/drivers/InterruptIn.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ class InterruptIn : private NonCopyable<InterruptIn> {
9999

100100

101101
/** Attach a function to call when a rising edge occurs on the input
102+
* Interrupts are enabled for the pin
102103
*
103104
* @param func A pointer to a void function, or 0 to set as none
104105
*/
105106
void rise(Callback<void()> func);
106107

107108
/** Attach a function to call when a falling edge occurs on the input
109+
* Interrupts are enabled for the pin
108110
*
109111
* @param func A pointer to a void function, or 0 to set as none
110112
*/

0 commit comments

Comments
 (0)