1 /* 2 * Copyright (c) 2022 ~ 2025, sakumisu 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #include "rtthread.h" 7 #include "usb_config.h" 8 9 #if defined(PKG_CHERRYUSB_HOST) || defined(RT_CHERRYUSB_HOST) 10 11 #ifndef RT_USING_TIMER_SOFT 12 #error must enable RT_USING_TIMER_SOFT to support timer callback in thread 13 #endif 14 15 #if RT_TIMER_THREAD_STACK_SIZE < 1024 16 #error "RT_TIMER_THREAD_STACK_SIZE must be >= 1024" 17 #endif 18 #endif 19 20 #if defined(ARCH_ARM_CORTEX_M7) || \ 21 defined(SOC_HPM6000) || defined(SOC_HPM6E00) || defined(SOC_HPM6P00) || \ 22 defined(BSP_USING_BL61X) || defined(BSP_USING_BL808) 23 #ifndef RT_USING_CACHE 24 #error RT_USING_CACHE must be enabled in this chip 25 #endif 26 #endif 27 28 #ifdef RT_USING_CACHE 29 #ifndef CONFIG_USB_DCACHE_ENABLE 30 #warning CONFIG_USB_DCACHE_ENABLE must be enabled if you do not config nocache ram 31 #endif 32 #endif 33