diff options
| author | gary.li.wenchao.4 <[email protected]> | 2010-02-16 15:19:52 +0000 |
|---|---|---|
| committer | gary.li.wenchao.4 <[email protected]> | 2010-02-16 15:19:52 +0000 |
| commit | 6370ac5f7951eb3e30cabaa493973f7178547a3f (patch) | |
| tree | c51040e80753beb5b04256ec3f2b13b7927a5c5a /libcpu | |
| parent | 71cbe22bb61845691d492a1123a6a3d30804df42 (diff) | |
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@414 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/s3c24x0/rtc_calendar.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/libcpu/arm/s3c24x0/rtc_calendar.c b/libcpu/arm/s3c24x0/rtc_calendar.c index 34ccab1524..032e139e18 100644 --- a/libcpu/arm/s3c24x0/rtc_calendar.c +++ b/libcpu/arm/s3c24x0/rtc_calendar.c @@ -31,10 +31,7 @@ rt_int8_t *month_en[12] ={ "January", "February", "March", "April", "May", "June rt_int8_t *day_en[7]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Firday","Saturday"};
rt_int8_t *day_cn[7]={"������","����һ","���ڶ�","������","������","������","������"};
//=====================================================================
-//��UART��ȡ�����·�
-//ȱʧ
-
-
+//read from uart
rt_int32_t rt_rtc_isleap(rt_uint32_t year)
{
@@ -98,7 +95,7 @@ void rt_rtc_print_common_fmt(rt_uint8_t month, rt_uint8_t weekday, rt_uint8_t le rt_kprintf("\n%s %s %d\n",
month_cn[month - 1], month_en[month - 1], year_seprt);
rt_kprintf("----------------------------------\n");
- rt_kprintf("SUN MON TUE WED THU FRI SET\n");
+ rt_kprintf("SUN MON TUE WED THU FRI SAT\n");
rt_kprintf("----------------------------------\n");
for (j = 0; j < weekday; j++)
rt_kprintf(" ");
@@ -147,7 +144,6 @@ void rt_rtc_year_month_day_seperate(rt_uint32_t year) rt_kprintf("\nPlease input year and month, if not, system default is loaded!\n");
year = DEFAULT_YEAR;
}
- /*�ж������ʽ */
if (year / 100 < 30 && year / 100 > 18)
{
year_seprt = year;
@@ -238,23 +234,6 @@ void rt_rtc_show_calendar(void) rt_rtc_weekdate_calculate();
}
-
- /*
- rt_kprintf("Going on?[no] ");
- receive_char = rt_hw_serial_getc();
-
- //if((receive_char !='y') || (receive_char !='Y') || (receive_char !='n') || (receive_char !='n'))
- if ((receive_char == 'y') || (receive_char == 'Y')
- || (receive_char == 'n') || (receive_char == 'N')) {
- if ((receive_char == 'n') || (receive_char == 'n'))
- return;
- else {
- UART_PutChar(receive_char);
- while (UART_GetKey() != KEY_ENTER);
- }
- } else
- */
- //return;
}
#ifdef RT_USING_FINSH
#include <finsh.h>
|
