Skip to content

Commit a9acc7f

Browse files
committed
change(dcd_dwc2): Fix build
1 parent 530dcf8 commit a9acc7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/portable/synopsys/dwc2/dcd_dwc2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ TU_ATTR_ALWAYS_INLINE static inline dwc2_regs_t* DWC2_REG(uint8_t rhport) {
7878
//--------------------------------------------------------------------+
7979
// MACRO TYPEDEF CONSTANT ENUM
8080
//--------------------------------------------------------------------+
81-
#if DWC2_ENABLE_MEM_CACHE
81+
#ifdef DWC2_ENABLE_MEM_CACHE
8282

8383
#ifndef DWC2_MEM_CACHE_LINE_SIZE
8484
#warning "Cache line size not specified, use default(64b) instead"

src/portable/synopsys/dwc2/dwc2_esp32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#include "hal/cache_hal.h"
4646
#include "esp_cache.h"
4747
#include "esp_log.h"
48-
#define DWC2_ENABLE_MEM_CACHE 1
48+
#define DWC2_ENABLE_MEM_CACHE
4949
#endif // SOC_CACHE_INTERNAL_MEM_VIA_L1CACHE
5050
#endif // OPT_MCU_ESP32P4
5151

0 commit comments

Comments
 (0)