R_CGC_Set_ClockMode


Sets the clock source.

[Syntax]

#include    "r_cg_macrodriver.h"
#include    "r_cg_cgc.h"
MD_STATUS   R_CGC_Set_ClockMode ( clock_mode_t mode );

[Argument(s)]

I/O

Argument

Description

I

clock_mode_t  mode;

Clock source type

MAINCLK: Main clock oscillator

SUBCLK: Sub-clock oscillator

PLLCLK: PLL circuit

HOCO: High-speed on-chip oscillator

LOCO: Low-speed on-chip oscillator

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ERROR1

Exit with error (abend)

MD_ARGERROR

Invalid argument mode specification