Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 9 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | 16 | ||
17 | @endverbatim |
17 | @endverbatim |
18 | ****************************************************************************** |
18 | ****************************************************************************** |
19 | * @attention |
19 | * @attention |
20 | * |
20 | * |
21 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
21 | * <h2><center>© Copyright (c) 2016 STMicroelectronics. |
- | 22 | * All rights reserved.</center></h2> |
|
22 | * |
23 | * |
23 | * Redistribution and use in source and binary forms, with or without modification, |
24 | * This software component is licensed by ST under BSD 3-Clause license, |
24 | * are permitted provided that the following conditions are met: |
25 | * the "License"; You may not use this file except in compliance with the |
25 | * 1. Redistributions of source code must retain the above copyright notice, |
- | |
26 | * this list of conditions and the following disclaimer. |
- | |
27 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
- | |
28 | * this list of conditions and the following disclaimer in the documentation |
- | |
29 | * and/or other materials provided with the distribution. |
26 | * License. You may obtain a copy of the License at: |
30 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
- | |
31 | * may be used to endorse or promote products derived from this software |
27 | * opensource.org/licenses/BSD-3-Clause |
32 | * without specific prior written permission. |
- | |
33 | * |
- | |
34 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
- | |
35 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
- | |
36 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
- | |
37 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
- | |
38 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
- | |
39 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
- | |
40 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
- | |
41 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
- | |
42 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
- | |
43 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
- | |
44 | * |
28 | * |
45 | ****************************************************************************** |
29 | ****************************************************************************** |
46 | */ |
30 | */ |
47 | 31 | ||
48 | /* Define to prevent recursive inclusion -------------------------------------*/ |
32 | /* Define to prevent recursive inclusion -------------------------------------*/ |
Line 110... | Line 94... | ||
110 | 94 | ||
111 | This feature can be modified afterwards using unitary function |
95 | This feature can be modified afterwards using unitary function |
112 | @ref LL_RCC_PLL_ConfigDomain_SYS(). */ |
96 | @ref LL_RCC_PLL_ConfigDomain_SYS(). */ |
113 | 97 | ||
114 | uint32_t Prediv; /*!< Division factor for HSE used as PLL clock source. |
98 | uint32_t Prediv; /*!< Division factor for HSE used as PLL clock source. |
115 | This parameter can be a value of @ref RCC_LL_EC_PREDIV_DIV |
99 | This parameter can be a value of @ref RCC_LL_EC_PREDIV_DIV |
116 | |
100 | |
117 | This feature can be modified afterwards using unitary function |
101 | This feature can be modified afterwards using unitary function |
118 | @ref LL_RCC_PLL_ConfigDomain_SYS(). */ |
102 | @ref LL_RCC_PLL_ConfigDomain_SYS(). */ |
119 | } LL_UTILS_PLLInitTypeDef; |
103 | } LL_UTILS_PLLInitTypeDef; |
120 | 104 | ||
121 | /** |
105 | /** |
Line 224... | Line 208... | ||
224 | */ |
208 | */ |
225 | 209 | ||
226 | /** |
210 | /** |
227 | * @brief This function configures the Cortex-M SysTick source of the time base. |
211 | * @brief This function configures the Cortex-M SysTick source of the time base. |
228 | * @param HCLKFrequency HCLK frequency in Hz (can be calculated thanks to RCC helper macro) |
212 | * @param HCLKFrequency HCLK frequency in Hz (can be calculated thanks to RCC helper macro) |
229 | * @note When a RTOS is used, it is recommended to avoid changing the SysTick |
213 | * @note When a RTOS is used, it is recommended to avoid changing the SysTick |
230 | * configuration by calling this function, for a delay use rather osDelay RTOS service. |
214 | * configuration by calling this function, for a delay use rather osDelay RTOS service. |
231 | * @param Ticks Number of ticks |
215 | * @param Ticks Number of ticks |
232 | * @retval None |
216 | * @retval None |
233 | */ |
217 | */ |
234 | __STATIC_INLINE void LL_InitTick(uint32_t HCLKFrequency, uint32_t Ticks) |
218 | __STATIC_INLINE void LL_InitTick(uint32_t HCLKFrequency, uint32_t Ticks) |
Line 250... | Line 234... | ||
250 | /** @defgroup UTILS_EF_SYSTEM SYSTEM |
234 | /** @defgroup UTILS_EF_SYSTEM SYSTEM |
251 | * @{ |
235 | * @{ |
252 | */ |
236 | */ |
253 | 237 | ||
254 | void LL_SetSystemCoreClock(uint32_t HCLKFrequency); |
238 | void LL_SetSystemCoreClock(uint32_t HCLKFrequency); |
- | 239 | #if defined(FLASH_ACR_LATENCY) |
|
- | 240 | ErrorStatus LL_SetFlashLatency(uint32_t Frequency); |
|
- | 241 | #endif /* FLASH_ACR_LATENCY */ |
|
255 | ErrorStatus LL_PLL_ConfigSystemClock_HSI(LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, |
242 | ErrorStatus LL_PLL_ConfigSystemClock_HSI(LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, |
256 | LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct); |
243 | LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct); |
257 | ErrorStatus LL_PLL_ConfigSystemClock_HSE(uint32_t HSEFrequency, uint32_t HSEBypass, |
244 | ErrorStatus LL_PLL_ConfigSystemClock_HSE(uint32_t HSEFrequency, uint32_t HSEBypass, |
258 | LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct); |
245 | LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct, LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct); |
259 | 246 |