diff options
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/s3c24x0/rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/arm/s3c24x0/rtc.c b/libcpu/arm/s3c24x0/rtc.c index a9b8d3bac2..bd75fdb012 100644 --- a/libcpu/arm/s3c24x0/rtc.c +++ b/libcpu/arm/s3c24x0/rtc.c @@ -148,8 +148,6 @@ void rt_hw_rtc_init(void) return;
}
-#ifdef RT_USING_FINSH
-#include <finsh.h>
time_t time(time_t* t)
{
rt_device_t device;
@@ -170,6 +168,8 @@ time_t time(time_t* t) return time;
}
+#ifdef RT_USING_FINSH
+#include <finsh.h>
void set_date(rt_uint32_t year, rt_uint32_t month, rt_uint32_t day)
{
struct tm ti;
|
