non-blocking SPI slave implementation
Dear reader,
I am trying to implement SPI communication between the DA14580 and a host mcu, for data package transfer. The DA14580 is acting as a SPI slave (8-bit, POL=0, PHA=0, bi-directional FIFO, DREADY interrupt line, own flow control). As a starting point I used thespi_hci.c. However, I noticed that thespi_hci_write_func()is blocking and is not - as thespi_hci_read_func()is - interrupt based. I am trying to make the write function interrupt based, however some things are not clear to me: