X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FDemo%2FCORTEX_STM32L152_Discovery_IAR%2FSystem%2Fsystem_stm32l1xx.c;h=2ca0c4774221a068aee36090fc00689ee0504820;hb=10d2416d223cc4cdaa1cf894d8e33c6da645299a;hp=9676838934b595faaf1e61568aadb65b621de505;hpb=2da8f94490e882f9f10279f1daffcb15fd4c58eb;p=freertos diff --git a/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/System/system_stm32l1xx.c b/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/System/system_stm32l1xx.c index 967683893..2ca0c4774 100644 --- a/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/System/system_stm32l1xx.c +++ b/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/System/system_stm32l1xx.c @@ -8,69 +8,69 @@ * This file contains the system clock configuration for STM32L1xx Ultra * Low Medium-density devices, and is generated by the clock configuration * tool "STM32L1xx_Clock_Configuration_V1.0.0.xls". - * - * 1. This file provides two functions and one global variable to be called from + * + * 1. This file provides two functions and one global variable to be called from * user application: * - SystemInit(): Setups the system clock (System clock source, PLL Multiplier * and Divider factors, AHB/APBx prescalers and Flash settings), - * depending on the configuration made in the clock xls tool. - * This function is called at startup just after reset and + * depending on the configuration made in the clock xls tool. + * This function is called at startup just after reset and * before branch to main program. This call is made inside * the "startup_stm32l1xx_md.s" file. - * + * * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used - * by the user application to setup the SysTick + * by the user application to setup the SysTick * timer or configure other parameters. - * + * * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must * be called whenever the core clock is changed - * during program execution. - * + * during program execution. + * * 2. After each device reset the MSI (2.1 MHz Range) is used as system clock source. * Then SystemInit() function is called, in "startup_stm32l1xx_md.s" file, to - * configure the system clock before to branch to main program. - * + * configure the system clock before to branch to main program. + * * 3. If the system clock source selected by user fails to startup, the SystemInit() - * function will do nothing and MSI still used as system clock source. User can - * add some code to deal with this issue inside the SetSysClock() function. - * + * function will do nothing and MSI still used as system clock source. User can + * add some code to deal with this issue inside the SetSysClock() function. + * * 4. The default value of HSE crystal is set to 8MHz, refer to "HSE_VALUE" define * in "stm32l1xx.h" file. When HSE is used as system clock source, directly or * through PLL, and you are using different crystal you have to adapt the HSE * value to your own configuration. - * - * 5. This file configures the system clock as follows: + * + * 5. This file configures the system clock as follows: *============================================================================= * System Clock Configuration *============================================================================= * System clock source | HSI - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * SYSCLK | 16000000 Hz - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * HCLK | 16000000 Hz - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * AHB Prescaler | 1 - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * APB1 Prescaler | 1 - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * APB2 Prescaler | 1 - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * HSE Frequency | 8000000 Hz - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * PLL DIV | Not Used - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * PLL MUL | Not Used - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * VDD | 3.3 V - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * Vcore | 1.8 V (Range 1) - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * Flash Latency | 0 WS - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- * Require 48MHz for USB clock | Disabled - *----------------------------------------------------------------------------- + *----------------------------------------------------------------------------- *============================================================================= - ****************************************************************************** + ****************************************************************************** * @attention * * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS @@ -81,7 +81,7 @@ * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. * *