diff options
| author | qiuyiuestc <[email protected]> | 2010-02-01 15:16:05 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-02-01 15:16:05 +0000 |
| commit | ef970b36a24d13e5c0a9966163a2d7610ce5a87a (patch) | |
| tree | 500b7a1a2419a9eb81bf04e9ff3e7562b8bc5081 /libcpu | |
| parent | d2590bb99a2fe9b1587653fd369c1fcef4eabd7d (diff) | |
support gcc for mini2440 platform(not finished)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@359 bbd45198-f89e-11dd-88c7-29a3b14d5316
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;
|
