-
大小: 755KB文件类型: .rar金币: 1下载: 0 次发布日期: 2021-06-08
- 语言: 其他
- 标签:
资源简介
例题:使用STM32的GPIOB口控制8个LED灯的亮灭。STM32有7个GPIO口,每个GPIO口有16个引脚,使用其中的8-15引脚对8个LED灯进行控制,可以实现闪亮、跑马灯、流水灯等效果。开发工具为Keil MDK5(最新版本),兼容低版本(本例题程序使用库函数:GPIO_SetBits和GPIO_ResetBits实现对LED亮灭的控制)
代码片段和文件信息
/**
******************************************************************************
* @file system_stm32f10x.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @brief CMSIS Cortex-M3 Device Peripheral Access layer System Source File.
*
* 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
* factors AHB/APBx prescalers and Flash settings).
* This function is called at startup just after reset and
* before branch to main program. This call is made inside
* the “startup_stm32f10x_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 HSI (8 MHz) is used as system clock source.
* Then SystemInit() function is called in “startup_stm32f10x_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 HSI 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 8 MHz (or 25 MHz depedning on
* the product used) refer to “HSE_VALUE“ define in “stm32f10x.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.
*
******************************************************************************
* @attention
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* © COPYRIGHT 2011 STMicroelectronics
******************************************************************************
*/
/** @addtogroup CMSIS
* @{
*/
/** @addtogroup stm32f10x_system
* @{
*
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 62913 2018-05-08 09:37 excise1\Listings\pro.map
文件 45012 2018-05-06 09:37 excise1\Listings\startup_stm32f10x_md.lst
文件 253043 2018-05-08 09:16 excise1\ob
文件 1222 2018-05-08 09:16 excise1\ob
文件 278208 2018-05-08 09:16 excise1\ob
文件 252187 2018-05-08 09:37 excise1\ob
文件 1238 2018-05-08 09:37 excise1\ob
文件 274052 2018-05-08 09:37 excise1\ob
文件 252594 2018-05-06 09:37 excise1\ob
文件 1375 2018-05-06 09:37 excise1\ob
文件 278024 2018-05-06 09:37 excise1\ob
文件 244516 2018-05-08 09:37 excise1\ob
文件 3403 2018-05-08 09:37 excise1\ob
文件 4596 2018-05-08 09:37 excise1\ob
文件 37533 2018-05-08 09:37 excise1\ob
文件 421 2018-05-08 09:37 excise1\ob
文件 479 2018-05-06 09:37 excise1\ob
文件 10768 2018-05-08 09:37 excise1\ob
文件 81 2018-05-06 09:37 excise1\ob
文件 6044 2018-05-06 09:37 excise1\ob
文件 256082 2018-05-06 09:37 excise1\ob
文件 1545 2018-05-06 09:37 excise1\ob
文件 299388 2018-05-06 09:37 excise1\ob
文件 251926 2018-05-06 09:44 excise1\ob
文件 1375 2018-05-06 09:44 excise1\ob
文件 281800 2018-05-06 09:44 excise1\ob
文件 259657 2018-05-06 09:37 excise1\ob
文件 1528 2018-05-06 09:37 excise1\ob
文件 320124 2018-05-06 09:37 excise1\ob
文件 253661 2018-05-06 09:37 excise1\ob
............此处省略24个文件信息
- 上一篇:cam350 9.5破解文件
- 下一篇:基于小波变换的数字水印综述
评论
共有 条评论