summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-11-25 19:11:19 +0700
committerhathach <[email protected]>2024-11-25 19:11:19 +0700
commit833eb7d22d641b2c2b1dd701f86d823f67b12d6d (patch)
tree03a5e9f865b50ab1f6aa79816dbe7955b2343a7f /src/tusb_option.h
parent66741e35c2661ccaa6a8f8cd6d2f6d7aab049f2c (diff)
change dcd_dcache_*() API return type from void to bool
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 2f07b8da6..d8b9feb16 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -397,6 +397,14 @@
#define CFG_TUSB_MEM_ALIGN TU_ATTR_ALIGNED(4)
#endif
+#ifndef CFG_TUSB_MEM_DCACHE_LINE_SIZE
+ #ifndef CFG_TUSB_MEM_DCACHE_LINE_SIZE_DEFAULT
+ #define CFG_TUSB_MEM_DCACHE_LINE_SIZE_DEFAULT 32
+ #endif
+
+ #define CFG_TUSB_MEM_DCACHE_LINE_SIZE CFG_TUSB_MEM_DCACHE_LINE_SIZE_DEFAULT
+#endif
+
// OS selection
#ifndef CFG_TUSB_OS
#define CFG_TUSB_OS OPT_OS_NONE
@@ -433,11 +441,7 @@
#endif
#ifndef CFG_TUD_MEM_DCACHE_LINE_SIZE
- #ifndef CFG_TUD_MEM_DCACHE_LINE_SIZE_DEFAULT
- #define CFG_TUD_MEM_DCACHE_LINE_SIZE_DEFAULT 32
- #endif
-
- #define CFG_TUD_MEM_DCACHE_LINE_SIZE CFG_TUD_MEM_DCACHE_LINE_SIZE_DEFAULT
+ #define CFG_TUD_MEM_DCACHE_LINE_SIZE CFG_TUSB_MEM_DCACHE_LINE_SIZE
#endif
#ifndef CFG_TUD_ENDPOINT0_SIZE
@@ -556,11 +560,7 @@
#endif
#ifndef CFG_TUH_MEM_DCACHE_LINE_SIZE
- #ifndef CFG_TUH_MEM_DCACHE_LINE_SIZE_DEFAULT
- #define CFG_TUH_MEM_DCACHE_LINE_SIZE_DEFAULT 32
- #endif
-
- #define CFG_TUH_MEM_DCACHE_LINE_SIZE CFG_TUH_MEM_DCACHE_LINE_SIZE_DEFAULT
+ #define CFG_TUH_MEM_DCACHE_LINE_SIZE CFG_TUSB_MEM_DCACHE_LINE_SIZE
#endif
//------------- CLASS -------------//