mirror of https://github.com/ARMmbed/mbed-os.git
Nordic NRF52 GPIO API: Fix failure to clear the field 'skip_gpio_setup' in a local
gpiote input configuration data structure, resulting in non-deterministic failure to initialize interrupt handling.pull/13184/head
parent
e4b81f67f9
commit
b9260ae8c7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue