File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.15 )
2
2
3
- if (CONFIG_CHERRYUSB )
3
+ if (CONFIG_CHERRYUSB OR ESP_PLATFORM )
4
4
5
5
if (BL_SDK_BASE )
6
6
message (STATUS "enable cherryusb in bouffalo_sdk" )
@@ -71,7 +71,7 @@ elseif(ESP_PLATFORM)
71
71
${cherryusb_incs}
72
72
${freertos_include}
73
73
PRIV_REQUIRES
74
- usb
74
+ usb esp_mm
75
75
LDFRAGMENTS
76
76
${ldfragments}
77
77
)
Original file line number Diff line number Diff line change 8
8
9
9
#include "sdkconfig.h"
10
10
#include "esp_rom_sys.h"
11
+ #include "esp_attr.h"
11
12
12
13
/* ================ USB common Configuration ================ */
13
14
28
29
// #define CONFIG_USB_DCACHE_ENABLE
29
30
30
31
/* attribute data into no cache ram */
31
- #define USB_NOCACHE_RAM_SECTION
32
+ #define USB_NOCACHE_RAM_SECTION DRAM_DMA_ALIGNED_ATTR
32
33
33
34
/* use usb_memcpy default for high performance but cost more flash memory.
34
35
* And, arm libc has a bug that memcpy() may cause data misalignment when the size is not a multiple of 4.
340
341
#define CONFIG_USB_DCACHE_ENABLE
341
342
342
343
#undef CONFIG_USB_ALIGN_SIZE
343
- #define CONFIG_USB_ALIGN_SIZE 32
344
+ #define CONFIG_USB_ALIGN_SIZE CONFIG_CACHE_L1_CACHE_LINE_SIZE
344
345
345
- void usb_dcache_clean (uintptr_t addr , uint32_t size );
346
- void usb_dcache_invalidate (uintptr_t addr , uint32_t size );
347
- void usb_dcache_flush (uintptr_t addr , uint32_t size );
348
346
#endif
You can’t perform that action at this time.
0 commit comments