Rev 50 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 50 | Rev 77 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /** |
1 | /** |
| 2 | ****************************************************************************** |
2 | ****************************************************************************** |
| 3 | * @file system_stm32l1xx.h |
3 | * @file system_stm32l1xx.h |
| 4 | * @author MCD Application Team |
4 | * @author MCD Application Team |
| 5 | * @brief CMSIS Cortex-M3 Device System Source File for STM32L1xx devices. |
5 | * @brief CMSIS Cortex-M3 Device System Source File for STM32L1xx devices. |
| 6 | ****************************************************************************** |
6 | ****************************************************************************** |
| 7 | * @attention |
7 | * @attention |
| 8 | * |
8 | * |
| 9 | * <h2><center>© Copyright (c) 2017 STMicroelectronics. |
9 | * Copyright (c) 2017-2021 STMicroelectronics. |
| 10 | * All rights reserved.</center></h2> |
10 | * All rights reserved. |
| 11 | * |
11 | * |
| 12 | * This software component is licensed by ST under BSD 3-Clause license, |
12 | * This software is licensed under terms that can be found in the LICENSE file |
| 13 | * the "License"; You may not use this file except in compliance with the |
13 | * in the root directory of this software component. |
| 14 | * License. You may obtain a copy of the License at: |
14 | * If no LICENSE file comes with this software, it is provided AS-IS. |
| 15 | * opensource.org/licenses/BSD-3-Clause |
15 | * |
| 16 | * |
16 | ****************************************************************************** |
| 17 | ****************************************************************************** |
17 | */ |
| 18 | */ |
18 | |
| 19 | 19 | /** @addtogroup CMSIS |
|
| 20 | /** @addtogroup CMSIS |
20 | * @{ |
| 21 | * @{ |
21 | */ |
| 22 | */ |
22 | |
| 23 | 23 | /** @addtogroup stm32l1xx_system |
|
| 24 | /** @addtogroup stm32l1xx_system |
24 | * @{ |
| 25 | * @{ |
25 | */ |
| 26 | */ |
26 | |
| 27 | 27 | /** |
|
| 28 | /** |
28 | * @brief Define to prevent recursive inclusion |
| 29 | * @brief Define to prevent recursive inclusion |
29 | */ |
| 30 | */ |
30 | #ifndef __SYSTEM_STM32L1XX_H |
| 31 | #ifndef __SYSTEM_STM32L1XX_H |
31 | #define __SYSTEM_STM32L1XX_H |
| 32 | #define __SYSTEM_STM32L1XX_H |
32 | |
| 33 | 33 | #ifdef __cplusplus |
|
| 34 | #ifdef __cplusplus |
34 | extern "C" { |
| 35 | extern "C" { |
35 | #endif |
| 36 | #endif |
36 | |
| 37 | 37 | /** @addtogroup STM32L1xx_System_Includes |
|
| 38 | /** @addtogroup STM32L1xx_System_Includes |
38 | * @{ |
| 39 | * @{ |
39 | */ |
| 40 | */ |
40 | |
| 41 | 41 | /** |
|
| 42 | /** |
42 | * @} |
| 43 | * @} |
43 | */ |
| 44 | */ |
44 | |
| 45 | 45 | ||
| 46 | 46 | /** @addtogroup STM32L1xx_System_Exported_types |
|
| 47 | /** @addtogroup STM32L1xx_System_Exported_types |
47 | * @{ |
| 48 | * @{ |
48 | */ |
| 49 | */ |
49 | /* This variable is updated in three ways: |
| 50 | /* This variable is updated in three ways: |
50 | 1) by calling CMSIS function SystemCoreClockUpdate() |
| 51 | 1) by calling CMSIS function SystemCoreClockUpdate() |
51 | 2) by calling HAL API function HAL_RCC_GetSysClockFreq() |
| 52 | 2) by calling HAL API function HAL_RCC_GetSysClockFreq() |
52 | 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency |
| 53 | 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency |
53 | Note: If you use this function to configure the system clock; then there |
| 54 | Note: If you use this function to configure the system clock; then there |
54 | is no need to call the 2 first functions listed above, since SystemCoreClock |
| 55 | is no need to call the 2 first functions listed above, since SystemCoreClock |
55 | variable is updated automatically. |
| 56 | variable is updated automatically. |
56 | */ |
| 57 | */ |
57 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
| 58 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
58 | /* |
| 59 | /* |
59 | */ |
| 60 | */ |
60 | extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */ |
| 61 | extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */ |
61 | extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */ |
| 62 | extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */ |
62 | extern const uint8_t PLLMulTable[9]; /*!< PLL multipiers table values */ |
| 63 | extern const uint8_t PLLMulTable[9]; /*!< PLL multipiers table values */ |
63 | |
| 64 | 64 | /** |
|
| 65 | /** |
65 | * @} |
| 66 | * @} |
66 | */ |
| 67 | */ |
67 | |
| 68 | 68 | /** @addtogroup STM32L1xx_System_Exported_Constants |
|
| 69 | /** @addtogroup STM32L1xx_System_Exported_Constants |
69 | * @{ |
| 70 | * @{ |
70 | */ |
| 71 | */ |
71 | |
| 72 | 72 | /** |
|
| 73 | /** |
73 | * @} |
| 74 | * @} |
74 | */ |
| 75 | */ |
75 | |
| 76 | 76 | /** @addtogroup STM32L1xx_System_Exported_Macros |
|
| 77 | /** @addtogroup STM32L1xx_System_Exported_Macros |
77 | * @{ |
| 78 | * @{ |
78 | */ |
| 79 | */ |
79 | |
| 80 | 80 | /** |
|
| 81 | /** |
81 | * @} |
| 82 | * @} |
82 | */ |
| 83 | */ |
83 | |
| 84 | 84 | /** @addtogroup STM32L1xx_System_Exported_Functions |
|
| 85 | /** @addtogroup STM32L1xx_System_Exported_Functions |
85 | * @{ |
| 86 | * @{ |
86 | */ |
| 87 | */ |
87 | |
| 88 | 88 | extern void SystemInit(void); |
|
| 89 | extern void SystemInit(void); |
89 | extern void SystemCoreClockUpdate(void); |
| 90 | extern void SystemCoreClockUpdate(void); |
90 | /** |
| 91 | /** |
91 | * @} |
| 92 | * @} |
92 | */ |
| 93 | */ |
93 | |
| 94 | 94 | #ifdef __cplusplus |
|
| 95 | #ifdef __cplusplus |
95 | } |
| 96 | } |
96 | #endif |
| 97 | #endif |
97 | |
| 98 | 98 | #endif /*__SYSTEM_STM32L1XX_H */ |
|
| 99 | #endif /*__SYSTEM_STM32L1XX_H */ |
99 | |
| 100 | 100 | /** |
|
| 101 | /** |
101 | * @} |
| 102 | * @} |
102 | */ |
| 103 | */ |
103 | |
| 104 | 104 | /** |
|
| 105 | /** |
105 | * @} |
| 106 | * @} |
106 | */ |
| 107 | */ |
107 | |
| 108 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
- | |