Skip to content

Commit 0a3b168

Browse files
committed
InterruptIn: add note about enabling interrupts in rise/fall
Fixes #8188 Make it obvious, only calling rise/fall methods, IRQ are active. Nothing more needed.
1 parent 54a4879 commit 0a3b168

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)