ISSDK  1.8
IoT Sensing Software Development Kit
Macros | Functions
clock_config.h File Reference
#include "fsl_common.h"
Include dependency graph for clock_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOARD_XTAL0_CLK_HZ   16000000U
 
#define BOARD_XTAL32K_CLK_HZ   32768U
 
#define BOARD_BOOTCLOCKFRO12M_CORE_CLOCK   12000000U
 
#define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK   96000000U
 
#define BOARD_BOOTCLOCKPLL100M_CORE_CLOCK   100000000U
 

Functions

void BOARD_InitBootClocks (void)
 This function executes default configuration of clocks. More...
 
void BOARD_BootClockFRO12M (void)
 This function executes configuration of clocks. More...
 
void BOARD_BootClockFROHF96M (void)
 This function executes configuration of clocks. More...
 
void BOARD_BootClockPLL100M (void)
 This function executes configuration of clocks. More...
 

Macro Definition Documentation

◆ BOARD_BOOTCLOCKFRO12M_CORE_CLOCK

#define BOARD_BOOTCLOCKFRO12M_CORE_CLOCK   12000000U

Core clock frequency: 12000000Hz

Definition at line 48 of file clock_config.h.

◆ BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK

#define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK   96000000U

Core clock frequency: 96000000Hz

Definition at line 74 of file clock_config.h.

◆ BOARD_BOOTCLOCKPLL100M_CORE_CLOCK

#define BOARD_BOOTCLOCKPLL100M_CORE_CLOCK   100000000U

Core clock frequency: 100000000Hz

Definition at line 100 of file clock_config.h.

Referenced by BOARD_BootClockPLL100M().

◆ BOARD_XTAL0_CLK_HZ

#define BOARD_XTAL0_CLK_HZ   16000000U

Board xtal frequency in Hz

Definition at line 21 of file clock_config.h.

◆ BOARD_XTAL32K_CLK_HZ

#define BOARD_XTAL32K_CLK_HZ   32768U

Board xtal32K frequency in Hz

Definition at line 22 of file clock_config.h.

Function Documentation

◆ BOARD_BootClockFRO12M()

void BOARD_BootClockFRO12M ( void  )

This function executes configuration of clocks.

< Set up the clock sources

< Set up FRO

< Ensure FRO is on

< Switch to FRO 12MHz first to ensure we can change voltage without accidentally being below the voltage for current speed

< Set up FRO to the 12 MHz, just for sure

< Set voltage for the one of the fastest clock outputs: System clock output

< Set FLASH wait states for core

< Set up dividers

< Set AHBCLKDIV divider to value 1

< Set up clock selectors - Attach clocks to the peripheries

< Switch MAIN_CLK to FRO12M

< Set SystemCoreClock variable.

< Set up the clock sources

< Configure FRO192M

< Ensure FRO is on

< Set up FRO to the 12 MHz, just for sure

< Switch to FRO 12MHz first to ensure we can change the clock setting

< Set FLASH wait states for core

< Set up dividers

< Set AHBCLKDIV divider to value 1

< Set up clock selectors - Attach clocks to the peripheries

< Switch MAIN_CLK to FRO12M

Definition at line 63 of file clock_config.c.

References BOARD_BOOTCLOCKFRO12M_CORE_CLOCK, and SystemCoreClock.

◆ BOARD_BootClockFROHF96M()

void BOARD_BootClockFROHF96M ( void  )

This function executes configuration of clocks.

< Set up the clock sources

< Set up FRO

< Ensure FRO is on

< Switch to FRO 12MHz first to ensure we can change voltage without accidentally being below the voltage for current speed

< Set voltage for the one of the fastest clock outputs: System clock output

< Set FLASH wait states for core

< Set up high frequency FRO output to selected frequency

< Set up dividers

< Set AHBCLKDIV divider to value 1

< Set up clock selectors - Attach clocks to the peripheries

< Switch MAIN_CLK to FRO_HF

< Set SystemCoreClock variable.

< Set up the clock sources

< Configure FRO192M

< Ensure FRO is on

< Set up FRO to the 12 MHz, just for sure

< Switch to FRO 12MHz first to ensure we can change the clock setting

< Set FLASH wait states for core

< Set up dividers

< Set AHBCLKDIV divider to value 1

< Set up clock selectors - Attach clocks to the peripheries

< Switch MAIN_CLK to FRO_HF

Definition at line 142 of file clock_config.c.

References BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK, and SystemCoreClock.

Referenced by BOARD_BootClockRUN(), and BOARD_InitBootClocks().

Here is the caller graph for this function:

◆ BOARD_BootClockPLL100M()

void BOARD_BootClockPLL100M ( void  )

This function executes configuration of clocks.

< Set up the clock sources

< Configure FRO192M

< Ensure FRO is on

< Set up FRO to the 12 MHz, just for sure

< Switch to FRO 12MHz first to ensure we can change the clock setting

< Set FLASH wait states for core

< Set up PLL

< Switch PLL0CLKSEL to EXT_CLK

< Configure PLL0 to the desired values

< Set up dividers

< Set AHBCLKDIV divider to value 1

< Set up clock selectors - Attach clocks to the peripheries

< Switch MAIN_CLK to PLL0

Definition at line 174 of file clock_config.c.

References BOARD_BOOTCLOCKPLL100M_CORE_CLOCK, and SystemCoreClock.

◆ BOARD_InitBootClocks()

void BOARD_InitBootClocks ( void  )

This function executes default configuration of clocks.

Definition at line 52 of file clock_config.c.