Dear All, I apologize in advance if it seems that the question has been already posed but it is still unclear to me. I have a pin (SIG_OK) and I want to read its logic value. I defined the inpus as:
nrf_gpio_cfg(SIG_OK, NRF_GPIO_PIN_DIR_INPUT, NRF_GPIO_PIN_INPUT_CONNECT, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_S0S1, NRF_GPIO_PIN_NOSENSE);
Then I inizialize the GPIOTE:
nrf_drv_gpiote_init();
Finally I access the pin with:
uint32_t sig_ok;
sig_ok=nrf_gpio_pin_read(SIG_OK);
Is this all correct??
Thanks a lot
Francesco