From ef970b36a24d13e5c0a9966163a2d7610ce5a87a Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Mon, 1 Feb 2010 15:16:05 +0000 Subject: support gcc for mini2440 platform(not finished) git-svn-id: https://rt-thread.googlecode.com/svn/trunk@359 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- libcpu/arm/s3c24x0/rtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcpu') 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 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 void set_date(rt_uint32_t year, rt_uint32_t month, rt_uint32_t day) { struct tm ti; -- cgit v1.3.1