modified rtc_calendar.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@426 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
579a566b44
commit
7918251ca6
|
@ -209,7 +209,7 @@ void rt_rtc_weekdate_calculate(void)
|
|||
|
||||
}
|
||||
|
||||
void rt_rtc_show_calendar(void)
|
||||
void rt_calendar(void)
|
||||
{
|
||||
rt_uint32_t year;
|
||||
//static rt_uint8_t receive_char;
|
||||
|
@ -237,5 +237,5 @@ void rt_rtc_show_calendar(void)
|
|||
}
|
||||
#ifdef RT_USING_FINSH
|
||||
#include <finsh.h>
|
||||
FINSH_FUNCTION_EXPORT(rt_rtc_show_calendar, print calendar)
|
||||
FINSH_FUNCTION_EXPORT(rt_calendar, print calendar)
|
||||
#endif
|
||||
|
|
|
@ -31,7 +31,7 @@ extern "C" {
|
|||
|
||||
rt_int32_t rt_rtc_isleap(rt_uint32_t year);
|
||||
rt_int32_t rt_rtc_week_of_newyears_day(rt_uint32_t year);
|
||||
void rt_rtc_show_calendar(void);
|
||||
void rt_calendar(void);
|
||||
void rt_rtc_print_calendar(rt_uint32_t year);
|
||||
rt_int32_t rt_rtc_month_day_num(rt_int32_t month, rt_int32_t leapyn);
|
||||
rt_int32_t rt_rtc_space_days(rt_int32_t month, rt_int32_t year);
|
||||
|
|
|
@ -35,7 +35,7 @@ extern void rt_show_version(void);
|
|||
extern void rt_system_heap_init(void*, void*);
|
||||
extern void rt_hw_finsh_init(void);
|
||||
extern void rt_application_init(void);
|
||||
extern void rt_rtc_show_calendar(void);
|
||||
extern void rt_calendar(void);
|
||||
|
||||
extern struct serial_device uart0;
|
||||
extern struct rt_device uart0_device;
|
||||
|
@ -101,7 +101,7 @@ void rtthread_startup(void)
|
|||
rt_show_version();
|
||||
|
||||
/* show calendar */
|
||||
rt_rtc_show_calendar();
|
||||
rt_calendar();
|
||||
|
||||
/* init tick */
|
||||
rt_system_tick_init();
|
||||
|
|
Loading…
Reference in New Issue