Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c
- Revision:
- 179:79309dc6340a
- Parent:
- 176:af195413fb11
--- a/targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c Wed Nov 08 13:50:44 2017 +0000
+++ b/targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c Thu Nov 23 11:57:25 2017 +0000
@@ -33,7 +33,6 @@
typedef struct {
bool used_as_gpio : 1;
PinDirection direction : 1;
- bool init_high : 1;
PinMode pull : 2;
bool used_as_irq : 1;
bool irq_fall : 1;
@@ -156,7 +155,7 @@
}
else {
// Configure as output.
- nrf_drv_gpiote_out_config_t cfg = GPIOTE_CONFIG_OUT_SIMPLE(m_gpio_cfg[pin].init_high);
+ nrf_drv_gpiote_out_config_t cfg = GPIOTE_CONFIG_OUT_SIMPLE(nrf_gpio_pin_out_read(pin));
nrf_drv_gpiote_out_init(pin, &cfg);
}
m_gpio_initialized |= ((gpio_mask_t)1UL << pin);
