Using SPI driver with nRF52840 DK and nRF Connect SDK

I'm currently using nRF Connect SDK 1.9.1 and I would like to learn how to use the spi peripheral to talk between another processor acting as the master and my nRF52840 DK as a slave. I have not been able to really find a relevant example anywhere showing me how to accomplish this.

I'm starting with a zephyr/samples/hello_world template for my application. 

In my prj.conf I have:

CONFIG_GPIO=y

CONFIG_SPI=y
CONFIG_SPI_SLAVE=y

I have looked through some of the driver files, but I'm not really sure how to use them, or which ones specifically that I should be using since there are multiple spi files. I'm still pretty new to nRF Connect and was hoping that someone could point me in the right direction to get me started.

Related