Device System Configuration File

The system configuration files system_stm32c5xx.c and system_stm32c5xx.h provide as minimum the following

  • SystemInit() : device-specific system configuration function.

    Typically, this function configures the RCC that is part of the STM32 device. This function is called within the Reset_Handler implemented in the startup_stm32c5xx.c.

  • SystemCoreClock : global variable that contains the system frequency.

    This variable can then be used by the application code as a reference value when configuring the micro-controller peripherals. Thus, this variable must be updated whenever the system clock is changed (for instance within the HAL RCC or using the unitary LL RCC APIs).

  • SystemCoreClockUpdate() : function to update the SystemCoreClock with current core Clock retrieved from RCC registers.