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.
pull/15149/head
Martin Kojtal 2021-10-21 14:54:26 +01:00
parent 54a4879801
commit 0a3b16868f
1 changed files with 2 additions and 0 deletions

View File

@ -99,12 +99,14 @@ public:
/** Attach a function to call when a rising edge occurs on the input
* Interrupts are enabled for the pin
*
* @param func A pointer to a void function, or 0 to set as none
*/
void rise(Callback<void()> func);
/** Attach a function to call when a falling edge occurs on the input
* Interrupts are enabled for the pin
*
* @param func A pointer to a void function, or 0 to set as none
*/