Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

nrfx_spi_init / nrfx_spim_init connect input on SCLK, why so ?

Dear Nordic experts,

I noticed this piece of code inside functions nrfx_spi_init and nrfx_spim_init, (nRF5_SDK_17.1.0_ddde560) :

nrf_gpio_cfg(p_config->sck_pin,
   NRF_GPIO_PIN_DIR_OUTPUT,
   NRF_GPIO_PIN_INPUT_CONNECT,
   NRF_GPIO_PIN_NOPULL,
   NRF_GPIO_PIN_S0S1,
   NRF_GPIO_PIN_NOSENSE);

My question is why are you setting NRF_GPIO_PIN_INPUT_CONNECT and not NRF_GPIO_PIN_INPUT_DISCONNECT. The clock is an output, isn't it ?

Would that break anything is this setting is changed to NRF_GPIO_PIN_INPUT_DISCONNECT ?
 

Parents Reply Children
Related