Sets the clock type (12-hour or 24-hour clock) of the real-time clock.
#include "r_cg_macrodriver.h" #include "r_cg_rtc.h" MD_STATUS R_RTC_Set_HourSystem ( rtc_hour_system_t hour_system ); |
If MD_BUSY1 or MD_BUSY2 is returned, it may be because the counter-operation is stopped, or the counter operation start wait time is too short, so make the value of the RTC_WAITTIME macro defined in the header file "r_cg_rtc.h" larger. |