Jump to main content

##

# 2.15.2 CLK_Core0ClkConfig Function

## C

    void CLK_Core0ClkConfig(CPU0_CLK_SRC clkSrc, CPU0_CLK_PRESCALER prescaler, bool mck0DivBy2,
    bool mck0Div2By2);

## Summary

Configures core 0 clock

## Description

This function configures core 0 clock parameters run-time.

## Precondition

None.

## Parameters

Param | Description
--- | ---
clkSrc | CPU0 clock source
prescaler | CPU0 clock prescaler
mck0DivBy2 | MCK0 clock frequency division for MCK0DIV clock
mck0Div2By2 | MCK0 clock frequency division for MCK0DIV2 clock

## Returns

None

## Example

    CLK_Initialize();
    CLK_Core0ClkConfig(CPU0_CLK_SRC_MAINCK, CPU0_CLK_PRESCALER_CLK_1, 2U, 1U);

## Remarks

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