2 ******************************************************************************
\r
3 * @file system_stm32l4xx.h
\r
4 * @author MCD Application Team
\r
5 * @brief CMSIS Cortex-M4 Device System Source File for STM32L4xx devices.
\r
6 ******************************************************************************
\r
9 * <h2><center>© Copyright (c) 2017 STMicroelectronics.
\r
10 * All rights reserved.</center></h2>
\r
12 * This software component is licensed by ST under BSD 3-Clause license,
\r
13 * the "License"; You may not use this file except in compliance with the
\r
14 * License. You may obtain a copy of the License at:
\r
15 * opensource.org/licenses/BSD-3-Clause
\r
17 ******************************************************************************
\r
20 /** @addtogroup CMSIS
\r
24 /** @addtogroup stm32l4xx_system
\r
29 * @brief Define to prevent recursive inclusion
\r
31 #ifndef __SYSTEM_STM32L4XX_H
\r
32 #define __SYSTEM_STM32L4XX_H
\r
38 /** @addtogroup STM32L4xx_System_Includes
\r
47 /** @addtogroup STM32L4xx_System_Exported_Variables
\r
50 /* The SystemCoreClock variable is updated in three ways:
\r
51 1) by calling CMSIS function SystemCoreClockUpdate()
\r
52 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
\r
53 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
\r
54 Note: If you use this function to configure the system clock; then there
\r
55 is no need to call the 2 first functions listed above, since SystemCoreClock
\r
56 variable is updated automatically.
\r
58 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
\r
60 extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
\r
61 extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
\r
62 extern const uint32_t MSIRangeTable[12]; /*!< MSI ranges table values */
\r
68 /** @addtogroup STM32L4xx_System_Exported_Constants
\r
76 /** @addtogroup STM32L4xx_System_Exported_Macros
\r
84 /** @addtogroup STM32L4xx_System_Exported_Functions
\r
88 extern void SystemInit(void);
\r
89 extern void SystemCoreClockUpdate(void);
\r
98 #endif /*__SYSTEM_STM32L4XX_H */
\r
107 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
\r