资源简介
意法半导体为stm32L1xx系列提供的1.3.1版标准库,相比HAL库更加简明清晰,易于上手。
代码片段和文件信息
/**
******************************************************************************
* @file system_stm32l1xx.c
* @author MCD Application Team
* @version V1.3.3
* @date 20-April-2015
* @brief CMSIS Cortex-M3 Device Peripheral Access layer System Source File.
* This file contains the system clock configuration for STM32L1xx Ultra
* Low Power devices and is generated by the clock configuration
* tool “STM32L1xx_Clock_Configuration_V1.1.0.xls“.
*
* 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
* before branch to main program. This call is made inside
* the “startup_stm32l1xx_xx.s“ file.
*
* - SystemCoreClock variable: Contains the core clock (HCLK) it can be used
* 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.
*
* 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_xx.s“ file to
* 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.
*
* 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:
*=============================================================================
* System Clock Configuration
*=============================================================================
* System Clock source | PLL(HSE)
*-----------------------------------------------------------------------------
* SYSCLK | 32000000 Hz
*---------------------------------
相关资源
- STM32 L053串口中断接收不定长数据DMA发
- STM32F407_ESP8266连接机智云
- STM32通过串口升级程序
- stm32烧写源码dos
- STM32 HAL库 硬件I2C对MPU6050的使用
- 野火《FreeRTOS+内核实现与应用开发实
- STM32F407+FREERTOS模板程序
- STM32F429驱动迪文串口屏程序
- STM32Fxx单片机 IAP 加密 升级
- STM32-FOC2.0-GUI
- STM32L0中文参考手册
- 《例说STM32》随书光盘
- stm32f407 ili9341屏幕驱动 HAL库 带FreeR
- Keil.STM32L1xx_DFP.1.0.2.pack
- stm32f407 双通道ADC DMA采集代码
- stm32硬件spi主从模式
- stm32l151低功耗芯片待机测试例程
- STM32+ESP8266+smartconfig配网.zip
- 普中STM32-PZ6806L开发板资料
- STM32F4xx HAL驱动说明书
- STM32F407 uCOS-III FAT32 I2C LCD SD卡
- 野火零死角玩转STM32全部,最好的ST
- STM32F4x7+freertos+lwip+ssl+MQTT完整代码
- STM32F407VET 基于DDS 用内置DAC实现实现多
- 使用STM32和CLRC663实现15693协议读写
- STM32中文固件库+中文芯片手册(完全
- 基于STM32的温湿度报警程序
- STM32 WinUSB
- BH1750+内部RTC stm32毕设验证成功
- 嵌入式系统及其应用 基于Cortex-M3内核
评论
共有 条评论