tanakamasayuki / Arduino_TensorFlowLite_ESP32

Allows you to run machine learning models locally on your ESP32 device.
Apache License 2.0
237 stars 49 forks source link

A SPI fault #21

Open DreamSpoonBird opened 1 week ago

DreamSpoonBird commented 1 week ago

[Arduino_TensorFlowLite_ESP32 Version] 1.0.0 Error: c:\Users\lenovo\Documents\Arduino\libraries\TensorFlowLite_ESP32\src\bus\spi_bus.c: In function 'spi_bus_create': c:\Users\lenovo\Documents\Arduino\libraries\TensorFlowLite_ESP32\src\bus\spi_bus.c:62:53: error: 'SPI3_HOST' undeclared (first use in this function); did you mean 'SPI2_HOST'? 62 | SPI_BUS_CHECK(SPI1_HOST < host_id && host_id <= SPI3_HOST, "Invalid spi host_id", NULL); | ^~~~~ c:\Users\lenovo\Documents\Arduino\libraries\TensorFlowLite_ESP32\src\bus\spi_bus.c:40:42: note: in definition of macro 'SPI_BUS_CHECK' 40 | #define SPI_BUS_CHECK(a, str, ret) if(!(a)) { \ | ^ c:\Users\lenovo\Documents\Arduino\libraries\TensorFlowLite_ESP32\src\bus\spi_bus.c:62:53: note: each undeclared identifier is reported only once for each function it appears in 62 | SPI_BUS_CHECK(SPI1_HOST < host_id && host_id <= SPI3_HOST, "Invalid spi host_id", NULL); | ^~~~~ c:\Users\lenovo\Documents\Arduino\libraries\TensorFlowLite_ESP32\src\bus\spi_bus.c:40:42: note: in definition of macro 'SPI_BUS_CHECK' 40 | #define SPI_BUS_CHECK(a, str, ret) if(!(a)) {

I use Beetle ESP32-C6,it only has one SPI. How do I resolve macro definition conflicts?