Everything

R_CGC_Set_ClockMode

Changes the CPU clock/peripheral hardware clock.

 

[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 generator type

  HIOCLK :                 High-speed onchip oscillator

  SYSX1CLK :           X1 clock

  SYSEXTCLK :         External main system clock

  SUBXT1CLK :        XT1 clock

  SUBEXTCLK :        External subsystem clock

 

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ERROR1

Exit with error (abend)

MD_ERROR2

Exit with error (abend)

MD_ERROR3

Exit with error (abend)

MD_ERROR4

Exit with error (abend)

MD_ARGERROR

Invalid argument specification