forked from Makuna/NeoPixelBus
Change to SP2_HOST for esp32c3 and avoid duplicate in Tasmota (#481)
Co-authored-by: Stephan Hadinger <stephan.hadinger@gmail.com>
This commit is contained in:
@@ -29,9 +29,9 @@ License along with NeoPixel. If not, see
|
||||
|
||||
#include "driver/spi_master.h"
|
||||
|
||||
#if defined(CONFIG_IDF_TARGET_ESP32C3)
|
||||
#if defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(HSPI_HOST)
|
||||
// HSPI_HOST depreciated in C3
|
||||
#define HSPI_HOST SPI3_HOST
|
||||
#define HSPI_HOST SPI2_HOST
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
||||
|
Reference in New Issue
Block a user