diff options
| author | sakumisu <[email protected]> | 2024-08-26 20:35:08 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-08-27 00:48:40 -0400 |
| commit | 669a6822e7ac3c1cc2c977faf1f7bfd2ca1d56d2 (patch) | |
| tree | 03fc96d104e215e0fc65d507a441bc13f4c8f3e7 /components/drivers/usb/cherryusb/platform/rtthread | |
| parent | cbf6b641c23c78b6f82dfb51fecebd0f95a60896 (diff) | |
update(cherryusb): update to v1.4.0
Diffstat (limited to 'components/drivers/usb/cherryusb/platform/rtthread')
| -rw-r--r-- | components/drivers/usb/cherryusb/platform/rtthread/usb_check.c | 4 | ||||
| -rw-r--r-- | components/drivers/usb/cherryusb/platform/rtthread/usbh_dfs.c | 11 |
2 files changed, 2 insertions, 13 deletions
diff --git a/components/drivers/usb/cherryusb/platform/rtthread/usb_check.c b/components/drivers/usb/cherryusb/platform/rtthread/usb_check.c index 643aa3ddd6..79ab320746 100644 --- a/components/drivers/usb/cherryusb/platform/rtthread/usb_check.c +++ b/components/drivers/usb/cherryusb/platform/rtthread/usb_check.c @@ -7,11 +7,11 @@ #endif #if IDLE_THREAD_STACK_SIZE < 2048 -#error "IDLE_THREAD_STACK_SIZE must be greater than 2048" +#error "IDLE_THREAD_STACK_SIZE must be greater than or equal to 2048" #endif #if RT_TIMER_THREAD_STACK_SIZE < 2048 -#error "RT_TIMER_THREAD_STACK_SIZE must be greater than 2048" +#error "RT_TIMER_THREAD_STACK_SIZE must be greater than or equal to 2048" #endif #endif diff --git a/components/drivers/usb/cherryusb/platform/rtthread/usbh_dfs.c b/components/drivers/usb/cherryusb/platform/rtthread/usbh_dfs.c index 12799e67b2..745ea5ea29 100644 --- a/components/drivers/usb/cherryusb/platform/rtthread/usbh_dfs.c +++ b/components/drivers/usb/cherryusb/platform/rtthread/usbh_dfs.c @@ -36,17 +36,6 @@ void rt_hw_cpu_dcache_ops(int ops, void *addr, int size) bflb_l1c_dcache_invalidate_range(addr, size); } } -#elif defined(SOC_HPM5000) || defined(SOC_HPM6000) -#include "hpm_l1c_drv.h" - -void rt_hw_cpu_dcache_ops(int ops, void *addr, int size) -{ - if (ops == RT_HW_CACHE_FLUSH) { - l1c_dc_flush((uint32_t)addr, size); - } else { - l1c_dc_invalidate((uint32_t)addr, size); - } -} #endif USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t msc_sector[512]; |
