summaryrefslogtreecommitdiff
path: root/platform/rtthread/usb_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/rtthread/usb_check.c')
-rw-r--r--platform/rtthread/usb_check.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/rtthread/usb_check.c b/platform/rtthread/usb_check.c
index adec2c51..9ea03c20 100644
--- a/platform/rtthread/usb_check.c
+++ b/platform/rtthread/usb_check.c
@@ -11,3 +11,20 @@
#endif
#endif
+
+#if defined(ARCH_ARM_CORTEX_M7) || \
+ defined(SOC_HPM6000) || defined(SOC_HPM6E00) || defined(SOC_HPM6P00) || \
+ defined(BSP_USING_BL61X) || defined(BSP_USING_BL808)
+#ifndef RT_USING_CACHE
+#error RT_USING_CACHE must be enabled in this chip
+#endif
+#endif
+
+#ifdef RT_USING_CACHE
+#ifndef CONFIG_USB_DCACHE_ENABLE
+#error CONFIG_USB_DCACHE_ENABLE must be enabled
+#endif
+#if RT_ALIGN_SIZE != 32 && RT_ALIGN_SIZE != 64
+#error RT_ALIGN_SIZE must be cacheline to 32 or 64
+#endif
+#endif