Everything

R_RTC_Set_HourSystem

Sets the clock type (12-hour or 24-hour clock) of the real-time clock.

 

[Syntax]

#include      “r_cg_macrodriver.h”

#include      “r_cg_rtc.h”

MD_STATUS  R_RTC_Set_HourSystem ( rtc_hour_system_t hour_system );

 

[Argument(s)]

I/O

Argument

Description

I

rtc_hour_system_t hour_system;

Clock type

HOUR12                               12 -hour clock

HOUR24                               24 -hour clock

 

[Return value]

Macro

Description

MD_OK

Normal completion

MD_BUSY1

Executing count process (before change to setting)

MD_BUSY2

Stopping count process (after change to setting)

MD_ARGERROR

Invalid argument specification

Remark         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.