Kinetis SDK v.1.3 API Reference Manual
Rev. 0
Freescale Semiconductor, Inc.
|
Enumerations | |
enum | clock_ip_src_t { kClockIpSrcNone = 0U, kClockIpSrcSysOsc = 1U, kClockIpSrcSIrc = 2U, kClockIpSrcFIrc = 3U, kClockIpSrcRtcOsc = 4U, kClockIpSrcSysFll = 5U, kClockIpSrcSysPll = 6U, kClockIpSrcPerPll = 7U, kClockIpSrcMax = 8U } |
Clock source for peripherals that support various clock selections. More... | |
Functions | |
static void | CLOCK_HAL_EnableClock (PCC_Type *base, uint8_t index) |
Enables the clock for an IP module. More... | |
static void | CLOCK_HAL_DisableClock (PCC_Type *base, uint8_t index) |
Disables the clock for an IP module. More... | |
static bool | CLOCK_HAL_GetGateCmd (PCC_Type *base, uint8_t index) |
Gets the clock gate status on the current core for an IP module. More... | |
static bool | CLOCK_HAL_GetGateCmdOnOtherCore (PCC_Type *base, uint8_t index) |
Gets the clock gate status on other core for some IP module. More... | |
static void | CLOCK_HAL_SetIpSrc (PCC_Type *base, uint8_t index, clock_ip_src_t src) |
Sets the clock source for an IP module. More... | |
static clock_ip_src_t | CLOCK_HAL_GetIpSrc (PCC_Type *base, uint8_t index) |
Gets the clock source for an IP module. More... | |
static void | CLOCK_HAL_SetIpDiv (PCC_Type *base, uint8_t index, uint32_t divider) |
Sets the clock divider for an IP module. More... | |
static uint32_t | CLOCK_HAL_GetIpDiv (PCC_Type *base, uint8_t index) |
Gets the clock divider for an IP module. More... | |
enum clock_ip_src_t |
|
inlinestatic |
This function enables the clock for a specific IP module. For example, to enable the DMA0 clock, use the function as follows:
or use macro like this:
base | Register base address for the PCC instance. |
index | The control register index for the IP module in PCC. |
|
inlinestatic |
This function disables the clock for a specific IP module. For example, to disable the DMA0 clock, use the function as follows:
or use macro like this:
base | Register base address for the PCC instance. |
index | The control register index for the IP module in PCC. |
|
inlinestatic |
This function gets the clock gate status on the current core for an IP module. For example, to get the DMA0 clock gate status, use the function as follows:
or use macro like this:
base | Register base address for the PCC instance. |
index | The control register index for the IP module in PCC. |
|
inlinestatic |
This function gets the clock gate status on other core for some IP module. For example, to get the DMA0 clock gate status, use like this:
or use macro like this:
base | Register base address for the PCC instance. |
index | The control register index for the IP module in PCC. |
|
inlinestatic |
This function sets the clock source for an IP module. For example, to set the clock source for USBFS0 to OSCCLK, use the function as follows:
or use macro like this:
base | Register base address for the PCC instance. |
index | The control register index for the IP module in PCC. |
src | The clock source to set. |
|
inlinestatic |
This function gets the clock source for an IP module. For example, to get the clock source for USBFS0 to OSCCLK, use the function as follows:
or use macro like this:
base | Register base address for the PCC instance. |
index | The control register index for the IP module in PCC. |
|
inlinestatic |
This function sets the clock divider for an IP module.
base | Register base address for the PCC instance. |
index | The control register index for the IP module in PCC. |
divider | Clock divider for this module. |
|
inlinestatic |
This function gets the clock divider for an IP module.
base | Register base address for the PCC instance. |
index | The control register index for the IP module in PCC. |