![]() |
MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
The MCUXpresso SDK provides APIs for MCUXpresso SDK devices' clock operation.
The clock driver supports:
Files | |
| file | fsl_clock.h |
Macros | |
| #define | SRAM_CLOCKS |
| Clock ip name array for SRAM. More... | |
| #define | FLASH_CLOCKS |
| Clock ip name array for FLASH. More... | |
| #define | IOCON_CLOCKS |
| Clock ip name array for IOCON. More... | |
| #define | GPIO_CLOCKS |
| Clock ip name array for GPIO. More... | |
| #define | WDT_CLOCKS |
| Clock ip name array for WDT. More... | |
| #define | I2C_CLOCKS |
| Clock ip name array for I2C. More... | |
| #define | SPISSP_CLOCKS |
| Clock ip name array for SPISSP. More... | |
| #define | CTIMER_CLOCKS |
| Clock ip name array for CTIMER. More... | |
| #define | TSEN_CLOCKS |
| Clock ip name array for TSEN. More... | |
| #define | EEPROM_CLOCKS |
| Clock ip name array for EEPROM. More... | |
| #define | CLK_GATE_DEFINE(reg, value) ((((reg)&0xFFU) << 24U) | ((value)&0xFFFFFFU)) |
| Internal used Clock definition only. More... | |
Enumerations | |
| enum | clock_ip_name_t |
| Clock gate name used for CLOCK_EnableClock/CLOCK_DisableClock. More... | |
| enum | clock_name_t { kCLOCK_SysClk, kCLOCK_Sfro, kCLOCK_Tfro } |
| Clock name used to get clock frequency. More... | |
| enum | clock_select_t |
| Clock Mux Switches CLK_MUX_DEFINE(reg, mux) reg is used to define the mux register mux is used to define the mux value. More... | |
| enum | clock_divider_t |
| Clock divider. | |
| enum | clock_SysClkfrequency_t |
| System clock frequency. | |
Driver version | |
| #define | FSL_CLOCK_DRIVER_VERSION (MAKE_VERSION(2, 0, 4)) |
| CLOCK driver version 2.0.4. More... | |
Clock gate, mux, and divider. | |
| static void | CLOCKOUT_Enable (bool value) |
| static void | CLOCK_EnableClock (clock_ip_name_t clk) |
| static void | CLOCK_DisableClock (clock_ip_name_t clk) |
| static void | CLOCK_UpdateWdtClk (void) |
| static void | CLOCK_Select (clock_select_t sel) |
| static void | CLOCK_SetClkDivider (clock_divider_t name, uint32_t value) |
| static uint32_t | CLOCK_GetClkDivider (clock_divider_t name) |
| static void | CLOCK_SetSysClkDiv (clock_SysClkfrequency_t name) |
Get frequency | |
| static uint32_t | CLOCK_GetSysClkFreq (void) |
| Return Frequency of system clock. More... | |
| uint32_t | CLOCK_GetClockOutClkFreq (void) |
| Return Frequency of ClockOut. More... | |
| uint32_t | CLOCK_GetFreq (clock_name_t clockName) |
| Return Frequency of selected clock. More... | |
| void | CLOCK_WdtClkSelect (bool sel) |
| enable wdt clock Update More... | |
| static uint32_t | CLOCK_GetSysclktrim (void) |
| static uint32_t | CLOCK_GetTmrclktrim (void) |
| #define FSL_CLOCK_DRIVER_VERSION (MAKE_VERSION(2, 0, 4)) |
| #define SRAM_CLOCKS |
| #define FLASH_CLOCKS |
| #define IOCON_CLOCKS |
| #define GPIO_CLOCKS |
| #define WDT_CLOCKS |
| #define I2C_CLOCKS |
| #define SPISSP_CLOCKS |
| #define CTIMER_CLOCKS |
| #define TSEN_CLOCKS |
| #define EEPROM_CLOCKS |
| #define CLK_GATE_DEFINE | ( | reg, | |
| value | |||
| ) | ((((reg)&0xFFU) << 24U) | ((value)&0xFFFFFFU)) |
| enum clock_ip_name_t |
| enum clock_name_t |
| enum clock_select_t |
|
inlinestatic |
| uint32_t CLOCK_GetClockOutClkFreq | ( | void | ) |
| uint32_t CLOCK_GetFreq | ( | clock_name_t | clockName | ) |
| void CLOCK_WdtClkSelect | ( | bool | sel | ) |
| sel,: | 1=update 0=no update |