ARMEBS4  revision-26.06.2015
system_stm32f4xx.h
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * @file system_stm32f4xx.h
4  * @author MCD Application Team
5  * @version V1.0.0
6  * @date 30-September-2011
7  * @brief CMSIS Cortex-M4 Device System Source File for STM32F4xx devices.
8  ******************************************************************************
9  * @attention
10  *
11  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17  *
18  * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
19  ******************************************************************************
20  */
21 
22 /** @addtogroup CMSIS
23  * @{
24  */
25 
26 /** @addtogroup stm32f4xx_system
27  * @{
28  */
29 
30 /**
31  * @brief Define to prevent recursive inclusion
32  */
33 #ifndef __SYSTEM_STM32F4XX_H
34 #define __SYSTEM_STM32F4XX_H
35 
36 #ifdef __cplusplus
37  extern "C" {
38 #endif
39 
40 #include <stdint.h>
41 
42 /** @addtogroup STM32F4xx_System_Includes
43  * @{
44  */
45 
46 /**
47  * @}
48  */
49 
50 
51 /** @addtogroup STM32F4xx_System_Exported_types
52  * @{
53  */
54 struct system_clock_t
55 {
56  uint32_t hclk;
57  uint32_t timer;
58 };
59 extern struct system_clock_t SystemClock; /*!< System Clock Frequency (Core Clock) */
60 
61 
62 /**
63  * @}
64  */
65 
66 /** @addtogroup STM32F4xx_System_Exported_Constants
67  * @{
68  */
69 
70 /**
71  * @}
72  */
73 
74 /** @addtogroup STM32F4xx_System_Exported_Macros
75  * @{
76  */
77 
78 /**
79  * @}
80  */
81 
82 /** @addtogroup STM32F4xx_System_Exported_Functions
83  * @{
84  */
85 
86 extern void ClockInit(void);
87 extern void SystemCoreClockUpdate(void);
88 /**
89  * @}
90  */
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif /*__SYSTEM_STM32F4XX_H */
97 
98 /**
99  * @}
100  */
101 
102 /**
103  * @}
104  */
105 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
struct system_clock_t SystemClock