annotate f103c8/Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h @ 4:ca4f5b55b391

working on pwm
author cin
date Wed, 18 Jan 2017 03:27:00 +0300
parents 0c59e7a7782a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
1 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
2 ******************************************************************************
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
3 * @file system_stm32f10x.h
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
4 * @author MCD Application Team
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
5 * @version V4.1.0
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
6 * @date 29-April-2016
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
7 * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Header File.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
8 ******************************************************************************
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
9 * @attention
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
10 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
12 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
13 * Redistribution and use in source and binary forms, with or without modification,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
14 * are permitted provided that the following conditions are met:
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
15 * 1. Redistributions of source code must retain the above copyright notice,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
16 * this list of conditions and the following disclaimer.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
17 * 2. Redistributions in binary form must reproduce the above copyright notice,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
18 * this list of conditions and the following disclaimer in the documentation
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
19 * and/or other materials provided with the distribution.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
21 * may be used to endorse or promote products derived from this software
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
22 * without specific prior written permission.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
23 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
34 *
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
35 ******************************************************************************
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
36 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
37
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
38 /** @addtogroup CMSIS
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
39 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
40 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
41
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
42 /** @addtogroup stm32f10x_system
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
43 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
44 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
45
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
46 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
47 * @brief Define to prevent recursive inclusion
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
48 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
49 #ifndef __SYSTEM_STM32F10X_H
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
50 #define __SYSTEM_STM32F10X_H
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
51
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
52 #ifdef __cplusplus
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
53 extern "C" {
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
54 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
55
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
56 /** @addtogroup STM32F10x_System_Includes
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
57 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
58 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
59
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
60 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
61 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
62 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
63
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
64
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
65 /** @addtogroup STM32F10x_System_Exported_types
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
66 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
67 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
68
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
69 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
70 extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
71 extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
72
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
73 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
74 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
75 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
76
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
77 /** @addtogroup STM32F10x_System_Exported_Constants
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
78 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
79 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
80
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
81 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
82 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
83 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
84
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
85 /** @addtogroup STM32F10x_System_Exported_Macros
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
86 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
87 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
88
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
89 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
90 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
91 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
92
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
93 /** @addtogroup STM32F10x_System_Exported_Functions
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
94 * @{
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
95 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
96
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
97 extern void SystemInit(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
98 extern void SystemCoreClockUpdate(void);
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
99 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
100 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
101 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
102
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
103 #ifdef __cplusplus
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
104 }
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
105 #endif
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
106
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
107 #endif /*__SYSTEM_STM32F10X_H */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
108
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
109 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
110 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
111 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
112
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
113 /**
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
114 * @}
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
115 */
0c59e7a7782a Working on GPIO and RCC
cin
parents:
diff changeset
116 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/