Merge pull request #11270 from haslinghuis/rename_attr
[betaflight.git] / lib / main / STM32G4 / Drivers / CMSIS / Device / ST / STM32G4xx / Include / system_stm32g4xx.h
blobeb32755101e2f77656b43203e255beea5ff582dc
1 /**
2 ******************************************************************************
3 * @file system_stm32g4xx.h
4 * @author MCD Application Team
5 * @brief CMSIS Cortex-M4 Device System Source File for STM32G4xx devices.
6 ******************************************************************************
7 * @attention
9 * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
10 * All rights reserved.</center></h2>
12 * This software component is licensed by ST under BSD 3-Clause license,
13 * the "License"; You may not use this file except in compliance with the
14 * License. You may obtain a copy of the License at:
15 * opensource.org/licenses/BSD-3-Clause
17 ******************************************************************************
20 /** @addtogroup CMSIS
21 * @{
24 /** @addtogroup stm32g4xx_system
25 * @{
28 /**
29 * @brief Define to prevent recursive inclusion
31 #ifndef __SYSTEM_STM32G4XX_H
32 #define __SYSTEM_STM32G4XX_H
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
38 /** @addtogroup STM32G4xx_System_Includes
39 * @{
42 /**
43 * @}
47 /** @addtogroup STM32G4xx_System_Exported_Variables
48 * @{
50 /* The SystemCoreClock variable is updated in three ways:
51 1) by calling CMSIS function SystemCoreClockUpdate()
52 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
53 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
54 Note: If you use this function to configure the system clock; then there
55 is no need to call the 2 first functions listed above, since SystemCoreClock
56 variable is updated automatically.
58 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
60 extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
61 extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
63 /**
64 * @}
67 /** @addtogroup STM32G4xx_System_Exported_Constants
68 * @{
71 /**
72 * @}
75 /** @addtogroup STM32G4xx_System_Exported_Macros
76 * @{
79 /**
80 * @}
83 /** @addtogroup STM32G4xx_System_Exported_Functions
84 * @{
87 extern void SystemInit(void);
88 extern void SystemCoreClockUpdate(void);
89 /**
90 * @}
93 #ifdef __cplusplus
95 #endif
97 #endif /*__SYSTEM_STM32G4XX_H */
99 /**
100 * @}
104 * @}
106 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/