R_RTC_Set_ConstPeriodInterruptOn


Sets the cycle of the interrupts INTRTC, then starts the cyclic interrupt function.

[Syntax]

#include    "r_cg_macrodriver.h"
#include    "r_cg_rtc.h"
MD_STATUS   R_RTC_Set_ConstPeriodInterruptOn ( rtc_int_period_t period );

[Argument(s)]

I/O

Argument

Description

I

rtc_int_period_t  period;

Interrupt INTRTC cycle

HALFSEC: 0.5 seconds

ONESEC: 1 second

ONEMIN: 1 minute

ONEHOUR: 1 hour

ONEDAY: 1 day

ONEMONTH: 1 month

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ARGERROR

Invalid argument specification