ISSDK  1.7
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   12000000U
 
#define BOARD_XTAL32K_CLK_HZ   32768U
 
#define BOARD_BootClockRUN   BOARD_BootClockFROHF48M
 
#define BOARD_BOOTCLOCKFRO12M_CORE_CLOCK   12000000U
 
#define BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK   48000000U
 
#define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK   96000000U
 

Functions

void BOARD_BootClockFRO12M (void)
 This function executes configuration of clocks. More...
 
void BOARD_BootClockFROHF48M (void)
 This function executes configuration of clocks. More...
 
void BOARD_BootClockFROHF96M (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 54 of file clock_config.h.

Referenced by BOARD_BootClockFRO12M().

◆ BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK

#define BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK   48000000U

Core clock frequency: 48000000Hz

Definition at line 79 of file clock_config.h.

Referenced by BOARD_BootClockFROHF48M().

◆ BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK

#define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK   96000000U

Core clock frequency: 96000000Hz

Definition at line 104 of file clock_config.h.

Referenced by BOARD_BootClockFROHF96M().

◆ BOARD_BootClockRUN

#define BOARD_BootClockRUN   BOARD_BootClockFROHF48M

Definition at line 45 of file clock_config.h.

Referenced by main().

◆ BOARD_XTAL0_CLK_HZ

#define BOARD_XTAL0_CLK_HZ   12000000U

Board xtal0 frequency in Hz

Definition at line 43 of file clock_config.h.

◆ BOARD_XTAL32K_CLK_HZ

#define BOARD_XTAL32K_CLK_HZ   32768U

Board xtal32K frequency in Hz

Definition at line 44 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.

Definition at line 89 of file clock_config.c.

References BOARD_BOOTCLOCKFRO12M_CORE_CLOCK, and SystemCoreClock.

◆ BOARD_BootClockFROHF48M()

void BOARD_BootClockFROHF48M ( 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.

Definition at line 127 of file clock_config.c.

References BOARD_BOOTCLOCKFROHF48M_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.

Definition at line 168 of file clock_config.c.

References BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK, and SystemCoreClock.