standalone SDK: How to use SPI2 (as slave) to send different types of data to master?
gkcclm last edited by
Host needs to read different types of data from our K210 board using SPI. The first byte is the command byte indicating which type of data host wants to read. Usually the command byte should be followed by some dummy bytes so that K210 could have time to prepare data. Within the dummy bytes period, K210 should make data ready and call some functions to send data to slave after the dummy bytes.
Is the above flow correct?
Is there a sample program for this? What functions should be called for this purpose?