From 0a3b16868fd478482e7a1f843a081a348db75b0f Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Thu, 21 Oct 2021 14:54:26 +0100 Subject: [PATCH] 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. --- drivers/include/drivers/InterruptIn.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/include/drivers/InterruptIn.h b/drivers/include/drivers/InterruptIn.h index a5ac24eb041..ff8b14675d9 100644 --- a/drivers/include/drivers/InterruptIn.h +++ b/drivers/include/drivers/InterruptIn.h @@ -99,12 +99,14 @@ class InterruptIn : private NonCopyable { /** 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 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 */