Hi all,
I am using a nRF52840-DK as SPI slave with a MSP430 as host SPI master for a nRF8001 replacement application.
As I am absolutely not familiar with high level functions (threading, etc.) used within zephyr\samples\bluetooth\hci_spi\, I would start with a simple simulation of nRF8001 behaviour.
Thus I want to manage NREQ (CSN) and NRDY lines.
I set SPI slave driver through prj.conf
and overlay
At this point I want to read NREQ (CSN) logical level to set NRDY active (low) and call spi_transceive().
I tried gpio_pin_get(dev_spi, 35) but it returns invalid parameters error since dev_spi is not a gpio instance, I guess.
I read that there is no way to get event when CSN goes low here ...
If the above is still true, what would be the simplest configuration to catch CSN event ?
If there is no way, can I use the SPI driver interrupt ? How this information "interrupts = <35 1>" should be used ?
Thank you.
Development setup:
- Windows 10
- nRF Connect SDK 1.4.0
- SES V5.10d
- PCA10056