Merge pull request #9861 from jeromecoutant/PR_INTERRUPTIN

STM32 InterruptIn protection
pull/9856/head
Cruz Monrreal 2019-02-26 22:47:05 -06:00 committed by GitHub
commit 03bcf28ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
*/
#if DEVICE_INTERRUPTIN
#include <stdbool.h>
#include "cmsis.h"
#include "gpio_irq_api.h"
@ -342,3 +345,5 @@ void gpio_irq_disable(gpio_irq_t *obj)
NVIC_ClearPendingIRQ(obj->irq_n);
}
}
#endif /* DEVICE_INTERRUPTIN */