Change pin configuration

Hello,

I'm working with the nRF Connect SDK version 1.8, using Zephyr and a CC1101 radio module. The radio communicates via SPI, but at the beginning of the process, I need to perform a hardware reset. This reset requires changing the SPI pins configuration to GPIO mode with some pins as output and some as input, performing some operations, and then reconfiguring them back to SPI mode.

I noticed that in newer versions of Zephyr, you can use pinctrl to dynamically change pin configurations at runtime. However, is it possible to achieve this in the older version of Zephyr used with nRF Connect SDK 1.8?

Related