Merge pull request #12431 from the-real-blackh/master

Nordic NRF52 GPIO API: Fix non-deterministic failure to configure interrupt handling
pull/12473/head
Martin Kojtal 2020-02-19 12:54:58 +00:00 committed by GitHub
commit 664000ac82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#include "gpio_irq_api.h"
#include "pinmap.h"
#include "nrfx_gpiote.h"
#include <string.h>
#if defined(TARGET_MCU_NRF51822)
@ -125,6 +126,7 @@ static void gpio_apply_config(uint8_t pin)
|| (m_gpio_cfg[pin].used_as_irq)) {
//Configure as input.
nrfx_gpiote_in_config_t cfg;
memset(&cfg, 0, sizeof(cfg));
cfg.hi_accuracy = false;
cfg.is_watcher = false;