Skip to content

Commit cb81d72

Browse files
committed
[bluetrum] rtc add version check
1 parent 9d27d8c commit cb81d72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bsp/bluetrum/libraries/hal_drivers/drv_rtc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
#ifdef BSP_USING_ONCHIP_RTC
1818

19+
#if RTTHREAD_VERSION < 40004
20+
#error "RTTHREAD_VERSION is less than 4.0.4"
21+
#endif
22+
1923
//#define DRV_DEBUG
2024
#define LOG_TAG "drv.rtc"
2125
#include <drv_log.h>

0 commit comments

Comments
 (0)