1 /**
2   ******************************************************************************
3   * @file    system_stm32f0xx.h
4   * @author  MCD Application Team
5   * @brief   CMSIS Cortex-M0 Device System Source File for STM32F0xx devices.
6   ******************************************************************************
7   * @attention
8   *
9   * Copyright (c) 2016 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 stm32f0xx_system
23   * @{
24   */
25 
26 /**
27   * @brief Define to prevent recursive inclusion
28   */
29 #ifndef __SYSTEM_STM32F0XX_H
30 #define __SYSTEM_STM32F0XX_H
31 
32 #ifdef __cplusplus
33  extern "C" {
34 #endif
35 
36 /** @addtogroup STM32F0xx_System_Includes
37   * @{
38   */
39 
40 /**
41   * @}
42   */
43 
44 
45 /** @addtogroup STM32F0xx_System_Exported_types
46   * @{
47   */
48   /* This variable is updated in three ways:
49       1) by calling CMSIS function SystemCoreClockUpdate()
50       3) by calling HAL API function HAL_RCC_GetHCLKFreq()
51       3) by calling HAL API function HAL_RCC_ClockConfig()
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   */
56 extern uint32_t SystemCoreClock;          /*!< System Clock Frequency (Core Clock) */
57 extern const uint8_t AHBPrescTable[16];   /*!< AHB prescalers table values */
58 extern const uint8_t APBPrescTable[8];    /*!< APB prescalers table values */
59 
60 /**
61   * @}
62   */
63 
64 /** @addtogroup STM32F0xx_System_Exported_Constants
65   * @{
66   */
67 
68 /**
69   * @}
70   */
71 
72 /** @addtogroup STM32F0xx_System_Exported_Macros
73   * @{
74   */
75 
76 /**
77   * @}
78   */
79 
80 /** @addtogroup STM32F0xx_System_Exported_Functions
81   * @{
82   */
83 
84 extern void SystemInit(void);
85 extern void SystemCoreClockUpdate(void);
86 /**
87   * @}
88   */
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /*__SYSTEM_STM32F0XX_H */
95 
96 /**
97   * @}
98   */
99 
100 /**
101   * @}
102   */
103