123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- /**
- ******************************************************************************
- * @file system_stm32l5xx.h
- * @author MCD Application Team
- * @brief CMSIS Cortex-M33 Device System Source File for STM32L5xx devices.
- ******************************************************************************
- * @attention
- *
- * <h2><center>© Copyright (c) 2019 STMicroelectronics.
- * All rights reserved.</center></h2>
- *
- * This software component is licensed by ST under BSD 3-Clause license,
- * the "License"; You may not use this file except in compliance with the
- * License. You may obtain a copy of the License at:
- * opensource.org/licenses/BSD-3-Clause
- *
- ******************************************************************************
- */
- /** @addtogroup CMSIS
- * @{
- */
- /** @addtogroup STM32L5xx_system
- * @{
- */
- #ifndef SYSTEM_STM32L5XX_H
- #define SYSTEM_STM32L5XX_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- /** @addtogroup STM32L5xx_System_Includes
- * @{
- */
- #include <stdint.h>
- /**
- * @}
- */
- /** @addtogroup STM32L5xx_System_Exported_Variables
- * @{
- */
- /* The SystemCoreClock variable is updated in three ways:
- 1) by calling CMSIS function SystemCoreClockUpdate()
- 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
- 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
- Note: If you use this function to configure the system clock; then there
- is no need to call the 2 first functions listed above, since SystemCoreClock
- variable is updated automatically.
- */
- extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
- extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
- extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
- extern const uint32_t MSIRangeTable[16]; /*!< MSI ranges table values */
- /**
- * @}
- */
- /** @addtogroup STM32L5xx_System_Exported_Functions
- * @{
- */
- /**
- \brief Setup the microcontroller system.
- Initialize the System and update the SystemCoreClock variable.
- */
- extern void SystemInit (void);
- /**
- \brief Update SystemCoreClock variable.
- Updates the SystemCoreClock with current core Clock retrieved from cpu registers.
- */
- extern void SystemCoreClockUpdate (void);
- /**
- \brief Update SystemCoreClock variable from secure application and return its value
- when security is implemented in the system (Non-secure callable function).
- Returns the SystemCoreClock value with current core Clock retrieved from cpu registers.
- */
- extern uint32_t SECURE_SystemCoreClockUpdate(void);
- /**
- * @}
- */
- #ifdef __cplusplus
- }
- #endif
- #endif /* SYSTEM_STM32L5XX_H */
- /**
- * @}
- */
- /**
- * @}
- */
- /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|