This commit is contained in:
Jason2866 2021-06-18 15:44:39 +00:00
parent 6767a9809a
commit d973408867
1 changed files with 1 additions and 1 deletions

View File

@ -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