Skip to content

Commit 9ab68b9

Browse files
authored
Merge pull request #13184 from supertoast/mbed-os-5.15
Nordic NRF52 GPIO API: Fix failure to clear the field 'skip_gpio_setup' in a local
2 parents a85f2bb + b9260ae commit 9ab68b9

File tree

1 file changed

+2
-0
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52

1 file changed

+2
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/gpio_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "gpio_irq_api.h"
2020
#include "pinmap.h"
2121
#include "nrfx_gpiote.h"
22+
#include <string.h>
2223

2324

2425
#if defined(TARGET_MCU_NRF51822)
@@ -125,6 +126,7 @@ static void gpio_apply_config(uint8_t pin)
125126
|| (m_gpio_cfg[pin].used_as_irq)) {
126127
//Configure as input.
127128
nrfx_gpiote_in_config_t cfg;
129+
memset(&cfg, 0, sizeof(cfg));
128130

129131
cfg.hi_accuracy = false;
130132
cfg.is_watcher = false;

0 commit comments

Comments
 (0)