firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
STM32H7xx_System_Private_Functions
Collaboration diagram for STM32H7xx_System_Private_Functions:

Functions

void SystemInit (void)
 Setup the microcontroller system Initialize the FPU setting and vector table location configuration.
void SystemCoreClockUpdate (void)
 Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable contains the core clock , it can be used by the user application to setup the SysTick timer or configure other parameters.
void ExitRun0Mode (void)
 Exit Run* mode and Configure the system Power Supply.

Detailed Description

Function Documentation

◆ ExitRun0Mode()

void ExitRun0Mode ( void )

Exit Run* mode and Configure the system Power Supply.

Note
This function exits the Run* mode and configures the system power supply according to the definition to be used at compilation preprocessing level. The application shall set one of the following configuration option:
  • PWR_LDO_SUPPLY
  • PWR_DIRECT_SMPS_SUPPLY
  • PWR_EXTERNAL_SOURCE_SUPPLY
  • PWR_SMPS_1V8_SUPPLIES_LDO
  • PWR_SMPS_2V5_SUPPLIES_LDO
  • PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO
  • PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO
  • PWR_SMPS_1V8_SUPPLIES_EXT
  • PWR_SMPS_2V5_SUPPLIES_EXT
The function modifies the PWR->CR3 register to enable or disable specific power supply modes and waits until the voltage level flag is set, indicating that the power supply configuration is stable.
Parameters
None
Return values
None

◆ SystemCoreClockUpdate()

void SystemCoreClockUpdate ( void )

Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable contains the core clock , it can be used by the user application to setup the SysTick timer or configure other parameters.

Note
Each time the core clock changes, this function must be called to update SystemCoreClock variable value. Otherwise, any configuration based on this variable will be incorrect.
- The system frequency computed by this function is not the real frequency in the chip. It is calculated based on the predefined constant and the selected clock source:

(*) CSI_VALUE is a constant defined in stm32h7xx_hal.h file (default value 4 MHz) but the real value may vary depending on the variations in voltage and temperature. (**) HSI_VALUE is a constant defined in stm32h7xx_hal.h file (default value 64 MHz) but the real value may vary depending on the variations in voltage and temperature.

(***)HSE_VALUE is a constant defined in stm32h7xx_hal.h file (default value 25 MHz), user has to ensure that HSE_VALUE is same as the real frequency of the crystal used. Otherwise, this function may have wrong result.

  • The result of this function could be not correct when using fractional value for HSE crystal.
    Parameters
    None
    Return values
    None

◆ SystemInit()

void SystemInit ( void )

Setup the microcontroller system Initialize the FPU setting and vector table location configuration.

Parameters
None
Return values
None