Everything

R_LPC_ChangeSleepModeReturnClock

Sets the clock source that is selected following release from sleep mode.

 

[Syntax]

#include       "r_cg_macrodriver.h"

#include       "r_cg_lpc.h"

MD_STATUS   R_LPC_ChangeSleepModeReturnClock ( return_clock_t clock );

 

[Argument(s)]

I/O

Argument

Description

I

return_clock_t clock;

Clock source type

RETURN_LOCO                 : Low-speed on-chip oscillator

RETURN_HOCO                 : High-speed on-chip oscillator

RETURN_MAIN_CLOCK  : Main clock oscillator

RETURN_DISABLE            : Switching of the clock source does not proceed.

 

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ERROR1

Change to the low-speed operating mode ended abnormally.

MD_ARGERROR

Invalid argument clock specification