1.8.3.15 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

Param Description
periphID peripheral number
periphClkEn enable/disable peripheral clock
gclkEn enable/disable GCLK
gclkSrc GCLK source
gclkDiv GCLK clock divider

Returns

None.

Example

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

Remarks

None.