ISSDK  1.7
IoT Sensing Software Development Kit
Functions | Variables
clock_config.c File Reference
#include "fsl_power.h"
#include "fsl_clock.h"
#include "clock_config.h"
Include dependency graph for clock_config.c:

Go to the source code of this file.

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

Variables

uint32_t SystemCoreClock
 

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.

Variable Documentation

◆ SystemCoreClock

uint32_t SystemCoreClock