mirror of https://github.com/arendst/Tasmota.git
Fix s2
This commit is contained in:
parent
6767a9809a
commit
d973408867
|
@ -39,12 +39,12 @@
|
|||
|
||||
#endif // __riscv
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32C3
|
||||
// fix a bug in esp-idf 4.4 for esp32c3
|
||||
#ifndef REG_SPI_BASE
|
||||
#define REG_SPI_BASE(i) (DR_REG_SPI1_BASE + (((i)>1) ? (((i)* 0x1000) + 0x20000) : (((~(i)) & 1)* 0x1000 )))
|
||||
#endif
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32C3
|
||||
// SPI_MOSI_DLEN_REG is not defined anymore in esp32c3, instead use SPI_MS_DLEN_REG
|
||||
#define SPI_MOSI_DLEN_REG(x) SPI_MS_DLEN_REG(x)
|
||||
//alias for different chips, deprecated for the chips after esp32s2
|
||||
|
|
Loading…
Reference in New Issue