summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-01-03 09:08:47 +0000
committer[email protected] <[email protected]>2012-01-03 09:08:47 +0000
commit645260a1c91cc669ad5ee2e4cf7ef649f6e8b135 (patch)
treeeab90b374baaf85fe4215a207957b12a0c7b9d99 /libcpu
parentfcf74ed108d7d999db080500c843f5bdc0b04755 (diff)
fixed a compiling error while not defined RT_USING_FINSH
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1906 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/s3c24x0/rtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcpu/arm/s3c24x0/rtc.c b/libcpu/arm/s3c24x0/rtc.c
index 27275c4812..5d1193586f 100644
--- a/libcpu/arm/s3c24x0/rtc.c
+++ b/libcpu/arm/s3c24x0/rtc.c
@@ -170,6 +170,7 @@ void rt_hw_rtc_init(void)
rt_device_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR);
}
+#ifdef RT_USING_FINSH
#include <finsh.h>
void list_date()
{
@@ -185,3 +186,4 @@ void list_date()
}
}
FINSH_FUNCTION_EXPORT(list_date, list date);
+#endif