summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-11-04 21:38:57 +0800
committersakumisu <[email protected]>2025-11-04 21:38:57 +0800
commitd0a8f5b2d030eb28ed04bcb2e85fff895a72e4bc (patch)
tree5ce23faaaeca57b17bef4250c8ef7264af08aa9e
parentd482b7c7388d126a1571820a55925d320cfbafd0 (diff)
update(platform/rtthread): add more check for chip cache
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--platform/rtthread/usb_check.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/platform/rtthread/usb_check.c b/platform/rtthread/usb_check.c
index 4a5fb8c3..154d89f0 100644
--- a/platform/rtthread/usb_check.c
+++ b/platform/rtthread/usb_check.c
@@ -17,8 +17,11 @@
#endif
#endif
-#if defined(ARCH_ARM_CORTEX_M7) || \
- defined(SOC_HPM6000) || defined(SOC_HPM6E00) || defined(SOC_HPM6P00) || \
+#if defined(ARCH_ARM_CORTEX_M7) || \
+ defined(ARCH_ARM_CORTEX_A) || \
+ defined(ARCH_RISCV64) || \
+ defined(SOC_HPM6200) || defined(SOC_HPM6300) || defined(SOC_HPM6700) || defined(SOC_HPM6800) || \
+ 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
@@ -27,6 +30,6 @@
#ifdef RT_USING_CACHE
#ifndef CONFIG_USB_DCACHE_ENABLE
-#warning CONFIG_USB_DCACHE_ENABLE must be enabled if you do not config nocache ram
+#error CONFIG_USB_DCACHE_ENABLE must be enabled if you do not config nocache ram
#endif
#endif