We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 114e019 + edb8650 commit 1fa09faCopy full SHA for 1fa09fa
targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c
@@ -33,7 +33,6 @@
33
typedef struct {
34
bool used_as_gpio : 1;
35
PinDirection direction : 1;
36
- bool init_high : 1;
37
PinMode pull : 2;
38
bool used_as_irq : 1;
39
bool irq_fall : 1;
@@ -156,7 +155,7 @@ static void gpio_apply_config(uint8_t pin)
156
155
}
157
else {
158
// Configure as output.
159
- 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));
160
nrf_drv_gpiote_out_init(pin, &cfg);
161
162
m_gpio_initialized |= ((gpio_mask_t)1UL << pin);
0 commit comments