[libcpu][arm][s3c24x0] Fix RTC driver compile error

This commit is contained in:
iysheng 2021-07-05 11:24:06 +08:00
parent c08cdf145a
commit e62943abd2
1 changed files with 3 additions and 1 deletions

View File

@ -12,11 +12,12 @@
*/ */
#include <rtthread.h> #include <rtthread.h>
#include <rtdevice.h>
#include <sys/time.h> #include <sys/time.h>
#include <s3c24x0.h> #include <s3c24x0.h>
// #define RTC_DEBUG // #define RTC_DEBUG
#ifdef RT_USING_RTC
#define RTC_ENABLE RTCCON |= 0x01; /*RTC read and write enable */ #define RTC_ENABLE RTCCON |= 0x01; /*RTC read and write enable */
#define RTC_DISABLE RTCCON &= ~0x01; /* RTC read and write disable */ #define RTC_DISABLE RTCCON &= ~0x01; /* RTC read and write disable */
#define BCD2BIN(n) (((((n) >> 4) & 0x0F) * 10) + ((n) & 0x0F)) #define BCD2BIN(n) (((((n) >> 4) & 0x0F) * 10) + ((n) & 0x0F))
@ -183,3 +184,4 @@ void list_date()
} }
FINSH_FUNCTION_EXPORT(list_date, list date); FINSH_FUNCTION_EXPORT(list_date, list date);
#endif #endif
#endif