2.14.18 CLK_PeripheralClockConfigSet Function

C

void CLK_PeripheralClockConfigSet(ID_PERIPH periphID, bool periphClkEn, 
bool gclkEn, GCLK_SRC gclkSrc, uint8_t gclkDiv);

Summary

Configures given peripheral clock parameters

Description

Configures given peripheral clock parameters

Precondition

None.

Parameters

ParamDescription
periphIDperipheral number
periphClkEnenable/disable peripheral clock
gclkEnenable/disable GCLK
gclkSrcGCLK source
gclkDivGCLK clock divider

Returns

None.

Example

CLK_PeripheralClockConfigSet(10U, true, true, GCLK_SRC_MAINCK, 2U);

Remarks

None.