Hi Nordic,
I am using SDK 12.3.0, S130 2.0.1 and PCA10028 nrf51 DK.
I want to use nrf51 as SPI slave and other MCU as SPI master. I am using spis_pca10028 as example.
Here are some questions about SPIS:
1. I would like to set cs pin as external interrupt for nrf51 first. At the beginning, master would pull low (high -> low) CS pin to trigger nrf51 external interrupt. nrf51 would init spis module by calling nrf_drv_spis_init() and pull low (high -> low) a READY pin to signal master to send data through SPI. Finally, master would pull high (low -< high) CS pin and nrf51 would uninit spis module, set CS pin as external interrupt and pull READY pin high (low -> high). Please be awear that CS pin is always low during spis module init and spi communication. I am worried about the semaphore acquire and release whithout CS pin falling edge.
2. In spis example, program would set buffer before spis communication by calling nrf_drv_spis_buffers_set(). I would want to call nrf_drv_spis_buffers_set() during spi communication because I want to process received data first and then determine the reply message. Can I do that or I can only send dummy bytes in the first spi communication and then send reply message in the next spi communication?
Thanks.