mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Diff: targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c
- Revision:
- 178:79309dc6340a
- Parent:
- 175: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);