From 6a7ad0f57817c2c4ce83a0b0b3c52e5c0b589fe5 Mon Sep 17 00:00:00 2001 From: "coldfish.zhu" Date: Mon, 28 Dec 2009 12:20:54 +0000 Subject: [PATCH] git-svn-id: https://rt-thread.googlecode.com/svn/trunk@251 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/stm3210/rtc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/stm3210/rtc.c b/bsp/stm3210/rtc.c index b928dd170..dec0a7e94 100644 --- a/bsp/stm3210/rtc.c +++ b/bsp/stm3210/rtc.c @@ -179,7 +179,7 @@ void set_date(rt_uint32_t year, rt_uint32_t month, rt_uint32_t day) if (ti != RT_NULL) { ti->tm_year = year - 1900; - ti->tm_mon = month - 1; /* 2009.12.27 modify by coldfish.zhu@gmail.com */ + ti->tm_mon = month - 1; /* ti->tm_mon = month; */ ti->tm_mday = day; } @@ -218,7 +218,7 @@ void set_time(rt_uint32_t hour, rt_uint32_t minute, rt_uint32_t second) rt_rtc_control(device, RT_DEVICE_CTRL_RTC_SET_TIME, &now); } } -FINSH_FUNCTION_EXPORT(set_time, set second) +FINSH_FUNCTION_EXPORT(set_time, set time) void list_date() { @@ -227,5 +227,5 @@ void list_date() time(&now); rt_kprintf("%s\n", ctime(&now)); } -FINSH_FUNCTION_EXPORT(list_date, set date) +FINSH_FUNCTION_EXPORT(list_date, list date) #endif -- GitLab