Skip to content

Commit 8a3abbc

Browse files
Merge pull request #5207 from nvlsianpu/fix_DigitalIn_use_gpiote_nrf5x
Fix: DigitalIn of nRF5x was allocating GPIOTE channel
2 parents cd8e9e6 + 93fb667 commit 8a3abbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static void gpio_apply_config(uint8_t pin)
151151
cfg.pull = NRF_GPIO_PIN_NOPULL;
152152
break;
153153
}
154-
nrf_drv_gpiote_in_init(pin, &cfg, NULL);
154+
nrf_gpio_cfg_input(pin,cfg.pull);
155155
}
156156
}
157157
else {

0 commit comments

Comments
 (0)