summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-06-04 16:16:51 +0800
committersakumisu <[email protected]>2025-06-04 16:17:18 +0800
commit6973ec73d962758a3553cd8a567cb84aeb748054 (patch)
treebdae3cdca15a361ad21c80574f4d10507fa5d165
parent1feaed024e0321ecfd374277034cfeeec5113177 (diff)
update(cherryusb_config_template): update align size
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--cherryusb_config_template.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/cherryusb_config_template.h b/cherryusb_config_template.h
index 5f46c1c0..8485b894 100644
--- a/cherryusb_config_template.h
+++ b/cherryusb_config_template.h
@@ -23,13 +23,15 @@
/* Enable print with color */
#define CONFIG_USB_PRINTF_COLOR_ENABLE
+// #define CONFIG_USB_DCACHE_ENABLE
+
/* data align size when use dma or use dcache */
-#ifndef CONFIG_USB_ALIGN_SIZE
+#ifdef CONFIG_USB_DCACHE_ENABLE
+#define CONFIG_USB_ALIGN_SIZE 32 // 32 or 64
+#else
#define CONFIG_USB_ALIGN_SIZE 4
#endif
-// #define CONFIG_USB_DCACHE_ENABLE
-
/* attribute data into no cache ram */
#define USB_NOCACHE_RAM_SECTION __attribute__((section(".noncacheable")))
@@ -332,11 +334,6 @@
/* ---------------- MUSB Configuration ---------------- */
// #define CONFIG_USB_MUSB_SUNXI
-/* ================ USB Dcache Configuration ==================*/
-// #define CONFIG_USB_DCACHE_ENABLE
-// #undef CONFIG_USB_ALIGN_SIZE
-// #define CONFIG_USB_ALIGN_SIZE 32
-
#ifndef usb_phyaddr2ramaddr
#define usb_phyaddr2ramaddr(addr) (addr)
#endif