Skip to content

Commit 6973ec7

Browse files
committed
update(cherryusb_config_template): update align size
Signed-off-by: sakumisu <[email protected]>
1 parent 1feaed0 commit 6973ec7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

cherryusb_config_template.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
/* Enable print with color */
2424
#define CONFIG_USB_PRINTF_COLOR_ENABLE
2525

26+
// #define CONFIG_USB_DCACHE_ENABLE
27+
2628
/* data align size when use dma or use dcache */
27-
#ifndef CONFIG_USB_ALIGN_SIZE
29+
#ifdef CONFIG_USB_DCACHE_ENABLE
30+
#define CONFIG_USB_ALIGN_SIZE 32 // 32 or 64
31+
#else
2832
#define CONFIG_USB_ALIGN_SIZE 4
2933
#endif
3034

31-
// #define CONFIG_USB_DCACHE_ENABLE
32-
3335
/* attribute data into no cache ram */
3436
#define USB_NOCACHE_RAM_SECTION __attribute__((section(".noncacheable")))
3537

@@ -332,11 +334,6 @@
332334
/* ---------------- MUSB Configuration ---------------- */
333335
// #define CONFIG_USB_MUSB_SUNXI
334336

335-
/* ================ USB Dcache Configuration ==================*/
336-
// #define CONFIG_USB_DCACHE_ENABLE
337-
// #undef CONFIG_USB_ALIGN_SIZE
338-
// #define CONFIG_USB_ALIGN_SIZE 32
339-
340337
#ifndef usb_phyaddr2ramaddr
341338
#define usb_phyaddr2ramaddr(addr) (addr)
342339
#endif

0 commit comments

Comments
 (0)