File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,10 @@ extern "C" {
71
71
// REG_SPI_BASE is not defined for S3/C3 ??
72
72
73
73
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3
74
- #ifndef REG_SPI_BASE
75
- #define REG_SPI_BASE ( i ) (DR_REG_SPI1_BASE + (((i) > 1 ) ? (((i) * 0x1000 ) + 0x20000 ) : (((~(i)) & 1 ) * 0x1000 )))
74
+ #ifdef REG_SPI_BASE
75
+ #undef REG_SPI_BASE
76
76
#endif // REG_SPI_BASE
77
+ #define REG_SPI_BASE (i ) (DR_REG_SPI1_BASE + (((i) > 1 ) ? (((i) * 0x1000 ) + 0x20000 ) : (((~(i)) & 1 ) * 0x1000 )))
77
78
#endif // TARGET
78
79
79
80
/* *
Original file line number Diff line number Diff line change @@ -113,9 +113,10 @@ static void printFlashInfo(void) {
113
113
#endif
114
114
// REG_SPI_BASE is not defined for S3/C3 ??
115
115
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3
116
- #ifndef REG_SPI_BASE
117
- #define REG_SPI_BASE ( i ) (DR_REG_SPI1_BASE + (((i) > 1 ) ? (((i) * 0x1000 ) + 0x20000 ) : (((~(i)) & 1 ) * 0x1000 )))
116
+ #ifdef REG_SPI_BASE
117
+ #undef REG_SPI_BASE
118
118
#endif // REG_SPI_BASE
119
+ #define REG_SPI_BASE (i ) (DR_REG_SPI1_BASE + (((i) > 1 ) ? (((i) * 0x1000 ) + 0x20000 ) : (((~(i)) & 1 ) * 0x1000 )))
119
120
#endif // TARGET
120
121
121
122
chip_report_printf (" Flash Info:\n " );
You can’t perform that action at this time.
0 commit comments