1
0
Эх сурвалжийг харах

[bluetrum] rtc add version check

greedyhao 4 жил өмнө
parent
commit
cb81d72f51

+ 4 - 0
bsp/bluetrum/libraries/hal_drivers/drv_rtc.c

@@ -16,6 +16,10 @@
 
 #ifdef BSP_USING_ONCHIP_RTC
 
+#if RTTHREAD_VERSION < 40004
+#error "RTTHREAD_VERSION is less than 4.0.4"
+#endif
+
 //#define DRV_DEBUG
 #define LOG_TAG             "drv.rtc"
 #include <drv_log.h>