Skip to content

Commit 03bcf28

Browse files
author
Cruz Monrreal
authored
Merge pull request #9861 from jeromecoutant/PR_INTERRUPTIN
STM32 InterruptIn protection
2 parents 59b1469 + 675a7f9 commit 03bcf28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

targets/TARGET_STM/gpio_irq_api.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*******************************************************************************
2929
*/
30+
31+
#if DEVICE_INTERRUPTIN
32+
3033
#include <stdbool.h>
3134
#include "cmsis.h"
3235
#include "gpio_irq_api.h"
@@ -342,3 +345,5 @@ void gpio_irq_disable(gpio_irq_t *obj)
342345
NVIC_ClearPendingIRQ(obj->irq_n);
343346
}
344347
}
348+
349+
#endif /* DEVICE_INTERRUPTIN */

0 commit comments

Comments
 (0)