summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorguo <[email protected]>2021-07-12 10:35:10 +0800
committerGitHub <[email protected]>2021-07-12 10:35:10 +0800
commit19f1c82bc8355879d157805748b23e6dabed701d (patch)
tree4973b28b01d289dd596a097a7560f26b810db771 /libcpu
parent5bae565f7f021ab13113fc0a9c67fc468d97de02 (diff)
parent40e7d5a23df65c15bb7db53fe5f77e76701fd20d (diff)
Merge pull request #4870 from Guozhanxin/gitee_merge
merge Gitee
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/s3c24x0/rtc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcpu/arm/s3c24x0/rtc.c b/libcpu/arm/s3c24x0/rtc.c
index 0f9484405c..5d374dfadf 100644
--- a/libcpu/arm/s3c24x0/rtc.c
+++ b/libcpu/arm/s3c24x0/rtc.c
@@ -12,11 +12,12 @@
*/
#include <rtthread.h>
+#include <rtdevice.h>
#include <sys/time.h>
#include <s3c24x0.h>
// #define RTC_DEBUG
-
+#ifdef RT_USING_RTC
#define RTC_ENABLE RTCCON |= 0x01; /*RTC read and write enable */
#define RTC_DISABLE RTCCON &= ~0x01; /* RTC read and write disable */
#define BCD2BIN(n) (((((n) >> 4) & 0x0F) * 10) + ((n) & 0x0F))
@@ -183,3 +184,4 @@ void list_date()
}
FINSH_FUNCTION_EXPORT(list_date, list date);
#endif
+#endif