source: trunk/firmware/Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h

Last change on this file was 6, checked in by f.jahn, 8 months ago
File size: 2.3 KB
Line 
1/**
2 ******************************************************************************
3 * @file system_stm32g0xx.h
4 * @author MCD Application Team
5 * @brief CMSIS Cortex-M0+ Device System Source File for STM32G0xx devices.
6 ******************************************************************************
7 * @attention
8 *
9 * Copyright (c) 2018-2021 STMicroelectronics.
10 * All rights reserved.
11 *
12 * This software is licensed under terms that can be found in the LICENSE file
13 * in the root directory of this software component.
14 * If no LICENSE file comes with this software, it is provided AS-IS.
15 *
16 ******************************************************************************
17 */
18/** @addtogroup CMSIS
19 * @{
20 */
21
22/** @addtogroup stm32g0xx_system
23 * @{
24 */
25
26/**
27 * @brief Define to prevent recursive inclusion
28 */
29#ifndef SYSTEM_STM32G0XX_H
30#define SYSTEM_STM32G0XX_H
31
32#ifdef __cplusplus
33 extern "C" {
34#endif
35
36/** @addtogroup STM32G0xx_System_Includes
37 * @{
38 */
39
40/**
41 * @}
42 */
43
44
45/** @addtogroup STM32G0xx_System_Exported_types
46 * @{
47 */
48 /* This variable is updated in three ways:
49 1) by calling CMSIS function SystemCoreClockUpdate()
50 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
51 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
52 Note: If you use this function to configure the system clock; then there
53 is no need to call the 2 first functions listed above, since SystemCoreClock
54 variable is updated automatically.
55 */
56extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
57
58extern const uint32_t AHBPrescTable[16]; /*!< AHB prescalers table values */
59extern const uint32_t APBPrescTable[8]; /*!< APB prescalers table values */
60
61/**
62 * @}
63 */
64
65/** @addtogroup STM32G0xx_System_Exported_Constants
66 * @{
67 */
68
69/**
70 * @}
71 */
72
73/** @addtogroup STM32G0xx_System_Exported_Macros
74 * @{
75 */
76
77/**
78 * @}
79 */
80
81/** @addtogroup STM32G0xx_System_Exported_Functions
82 * @{
83 */
84
85extern void SystemInit(void);
86extern void SystemCoreClockUpdate(void);
87/**
88 * @}
89 */
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif /*SYSTEM_STM32G0XX_H */
96
97/**
98 * @}
99 */
100
101/**
102 * @}
103 */
Note: See TracBrowser for help on using the repository browser.