2.14.5 CLK_Core1ClkConfig Function

C

void CLK_Core1ClkConfig(CPU1_CLK_SRC clkSrc, CPU1_CLK_PRESCALER prescaler, bool mck1DivBy2 );

Summary

Configures core 1 clock

Description

This function configures core 1 clock parameters run-time.

Precondition

None.

Parameters

ParamDescription
clkSrcCPU1 clock source
prescalerCPU1 clock prescaler
mck1DivBy2MCK1 clock frequency division for MCK1DIV clock

Returns

None.

Example

CLK_Initialize();
CLK_Core1ClkConfig(CPU1_CLK_SRC_MAINCK, CPU1_CLK_PRESCALER_CLK_1, 2U);

Remarks

Application must take care of dependencies when clock parameters are changed run-time.