Hello,
I works with Zephyr, VCS, SDK 2.0.0
I don't find how to get pin number from the DTS pinctrl .
In this folowing code, I want to replace magic number (uplighted in yellow) by macro to acces data of the DTS
Thank's by advance for your help,
nrfx_spim_config_t spim_config = NRFX_SPIM_DEFAULT_CONFIG(NRFX_SPIM_PIN_NOT_USED,NRFX_SPIM_PIN_NOT_USED,NRFX_SPIM_PIN_NOT_USED,NRFX_SPIM_PIN_NOT_USED/*NRF_DT_GPIOS_TO_PSEL(SPIM_NODE, cs_gpios)*/);spim_config.sck_pin=6+32*1;spim_config.mosi_pin=7+32*1;spim_config.miso_pin=17+32*0;spim_config.frequency = NRF_SPIM_FREQ_1M;spim_config.skip_gpio_cfg = true;spim_config.skip_psel_cfg = false;nrfx_spim_init(&spi_rfid_instance, &spim_config, spi_rfid_handler, NULL);
And my DTS are