is there any command i can use to disable the SPI peripherals and restore basic GPIO function for them ? for eaxample i dont want to use SCK in SPI , i just want to transfer data. but use the SCK pin for another purpose , is that possible?
i found this interesting article also https://devzone.nordicsemi.com/question ... a-on-mosi/
this worked for the guy
Code: Select all
NRF_SPI0->PSEL.SCK = 25; nrf_drv_spi_transfer(&spi, buff_latch2, 14, m_rx_buf, 0); NRF_SPI0->PSEL.SCK = 12;
'class SPIClass' has no member named 'PSEL'