Skip to content

Commit e62943a

Browse files
committed
[libcpu][arm][s3c24x0] Fix RTC driver compile error
1 parent c08cdf1 commit e62943a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libcpu/arm/s3c24x0/rtc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
*/
1313

1414
#include <rtthread.h>
15+
#include <rtdevice.h>
1516
#include <sys/time.h>
1617
#include <s3c24x0.h>
1718

1819
// #define RTC_DEBUG
19-
20+
#ifdef RT_USING_RTC
2021
#define RTC_ENABLE RTCCON |= 0x01; /*RTC read and write enable */
2122
#define RTC_DISABLE RTCCON &= ~0x01; /* RTC read and write disable */
2223
#define BCD2BIN(n) (((((n) >> 4) & 0x0F) * 10) + ((n) & 0x0F))
@@ -183,3 +184,4 @@ void list_date()
183184
}
184185
FINSH_FUNCTION_EXPORT(list_date, list date);
185186
#endif
187+
#endif

0 commit comments

Comments
 (0)