Skip to content
Snippets Groups Projects
Commit 082ab1f4 authored by Davide Mor's avatar Davide Mor Committed by Matteo Pignataro
Browse files

[ExternalInterrupt] Fixed disable external interrupt by removing the NVIC interrupt disable

parent e5d346e2
No related branches found
No related tags found
No related merge requests found
...@@ -391,9 +391,6 @@ void enableExternalInterrupt(unsigned int gpioPort, unsigned int gpioNum, ...@@ -391,9 +391,6 @@ void enableExternalInterrupt(unsigned int gpioPort, unsigned int gpioNum,
void disableExternalInterrupt(unsigned int gpioPort, unsigned int gpioNum) void disableExternalInterrupt(unsigned int gpioPort, unsigned int gpioNum)
{ {
NVIC_DisableIRQ(static_cast<IRQn_Type>(GetEXTI_IRQn(gpioNum)));
EXTI->RTSR &= ~(1 << gpioNum); EXTI->RTSR &= ~(1 << gpioNum);
EXTI->FTSR &= ~(1 << gpioNum); EXTI->FTSR &= ~(1 << gpioNum);
EXTI->IMR &= ~(1 << gpioNum); EXTI->IMR &= ~(1 << gpioNum);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment