Open jr1221 opened 6 months ago
Use https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/peripherals/spi_slave.html, and example https://github.com/espressif/esp-idf/tree/v5.2.1/examples/peripherals/spi_slave (use the reciever example mostly, do not use handshake line)
Make a spi.c and spi.h files in src and include. Add the GPIO config from altium to spi.h.
spi.c
spi.h
src
include
Some recommended stuff in spi
Do not use DMA (DMA=0) for our usecase assume max size of 8 bytes.
There should be functions for send, recieve, init, and check transaction queue status.
Use https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/peripherals/spi_slave.html, and example https://github.com/espressif/esp-idf/tree/v5.2.1/examples/peripherals/spi_slave (use the reciever example mostly, do not use handshake line)
Make a
spi.c
andspi.h
files insrc
andinclude
. Add the GPIO config from altium to spi.h.Some recommended stuff in spi
Do not use DMA (DMA=0) for our usecase assume max size of 8 bytes.
There should be functions for send, recieve, init, and check transaction queue status.