usb_check.c 851 B

12345678910111213141516171819202122232425262728293031
  1. #include "rtthread.h"
  2. #include "usb_config.h"
  3. #if defined(PKG_CHERRYUSB_HOST) || defined(RT_CHERRYUSB_HOST)
  4. #ifndef RT_USING_TIMER_SOFT
  5. #error must enable RT_USING_TIMER_SOFT to support timer callback in thread
  6. #endif
  7. #if RT_TIMER_THREAD_STACK_SIZE < 2048
  8. #error "RT_TIMER_THREAD_STACK_SIZE must be >= 2048"
  9. #endif
  10. #endif
  11. #if defined(ARCH_ARM_CORTEX_M7) || \
  12. defined(SOC_HPM6000) || defined(SOC_HPM6E00) || defined(SOC_HPM6P00) || \
  13. defined(BSP_USING_BL61X) || defined(BSP_USING_BL808)
  14. #ifndef RT_USING_CACHE
  15. #error RT_USING_CACHE must be enabled in this chip
  16. #endif
  17. #endif
  18. #ifdef RT_USING_CACHE
  19. #ifndef CONFIG_USB_DCACHE_ENABLE
  20. #error CONFIG_USB_DCACHE_ENABLE must be enabled
  21. #endif
  22. #if RT_ALIGN_SIZE != 32 && RT_ALIGN_SIZE != 64
  23. #error RT_ALIGN_SIZE must be cacheline to 32 or 64
  24. #endif
  25. #endif