• 大小: 358KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-24
  • 语言: 其他
  • 标签: STM32  GPIO  仿真  

资源简介

STM32 F103R6 GPIO 闪烁源代码(Keil)及protues 8.6 sp2 仿真工程,源代码编译用Keil MDK 5.23版本,亲测通过

资源截图

代码片段和文件信息

/**
  ********************************  STM32F10x  *********************************
  * @文件名     : main.c
  * @作者       : strongerHuang
  * @库版本     : V3.5.0
  * @文件版本   : V1.0.0
  * @日期       : 2016年10月18日
  * @摘要       : 主函数 - Demo软件工程
  ******************************************************************************/
/*----------------------------------------------------------------------------
  更新日志:
  2016-10-18 V1.0.0:初始版本
  ----------------------------------------------------------------------------*/
/* 包含的头文件 --------------------------------------------------------------*/
#include “bsp.h“


/************************************************
函数名称 : SoftwareDelay
功    能 : 软件延时
参    数 : Cnt --- 延时计数
返 回 值 : 无
作    者 : strongerHuang
*************************************************/
void SoftwareDelay(uint32_t Cnt)
{
  while(Cnt--);
}

/************************************************
函数名称 : System_Initializes
功    能 : 系统初始化
参    数 : 无
返 回 值 : 无
作    者 : strongerHuang
*************************************************/
void System_Initializes(void)
{
  BSP_Initializes();
}

/************************************************
函数名称 : main
功    能 : 主函数入口
参    数 : 无
返 回 值 : int
作    者 : strongerHuang
*************************************************/
int main(void)
{
  System_Initializes();

  while(1)
  {
    LED_TOGGLE;                                  //LED变化
    SoftwareDelay(0x500000);                     //软件延时
  }
}



/**** Copyright (C)2016 strongerHuang. All Rights Reserved **** END OF FILE ****/

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-26 12:52  stm32demo\
     目录           0  2018-04-26 13:07  stm32demo\stm32f103r6\
     目录           0  2018-04-26 10:21  stm32demo\stm32f103r6\App\
     文件        1720  2016-10-18 12:00  stm32demo\stm32f103r6\App\main.c
     文件        3259  2016-10-18 12:00  stm32demo\stm32f103r6\App\stm32f10x_conf.h
     文件        4179  2016-10-18 12:00  stm32demo\stm32f103r6\App\stm32f10x_it.c
     文件        2086  2016-10-18 12:00  stm32demo\stm32f103r6\App\stm32f10x_it.h
     目录           0  2018-04-26 13:07  stm32demo\stm32f103r6\Bsp\
     文件        2944  2018-04-26 11:00  stm32demo\stm32f103r6\Bsp\bsp.c
     文件        1289  2018-04-26 11:01  stm32demo\stm32f103r6\Bsp\bsp.h
     目录           0  2018-04-26 10:21  stm32demo\stm32f103r6\Libraries\
     目录           0  2018-04-26 10:21  stm32demo\stm32f103r6\Libraries\CMSIS\
     目录           0  2018-04-26 10:21  stm32demo\stm32f103r6\Libraries\CMSIS\CoreSupport\
     文件       17273  2010-06-07 10:25  stm32demo\stm32f103r6\Libraries\CMSIS\CoreSupport\core_cm3.c
     文件       85714  2011-02-09 14:59  stm32demo\stm32f103r6\Libraries\CMSIS\CoreSupport\core_cm3.h
     目录           0  2018-04-26 10:21  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\
     目录           0  2018-04-26 10:21  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\startup\
     文件       15766  2011-03-10 10:52  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\startup\startup_stm32f10x_cl.s
     文件       15503  2011-03-10 10:52  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\startup\startup_stm32f10x_hd.s
     文件       15692  2011-03-10 10:52  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\startup\startup_stm32f10x_hd_vl.s
     文件       12376  2011-03-10 10:52  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\startup\startup_stm32f10x_ld.s
     文件       13656  2011-03-10 10:52  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\startup\startup_stm32f10x_ld_vl.s
     文件       12765  2011-03-10 10:52  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\startup\startup_stm32f10x_md.s
     文件       14073  2011-03-10 10:51  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\startup\startup_stm32f10x_md_vl.s
     文件       15955  2011-03-10 10:51  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\startup\startup_stm32f10x_xl.s
     文件      633931  2016-10-18 12:00  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\stm32f10x.h
     文件       36557  2011-03-10 10:51  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\system_stm32f10x.c
     文件        2085  2011-03-10 10:51  stm32demo\stm32f103r6\Libraries\CMSIS\DeviceSupport\system_stm32f10x.h
     目录           0  2018-04-26 10:21  stm32demo\stm32f103r6\Libraries\STM32F10x_StdPeriph_Driver\
     目录           0  2018-04-26 10:21  stm32demo\stm32f103r6\Libraries\STM32F10x_StdPeriph_Driver\inc\
     文件        8982  2011-03-10 10:47  stm32demo\stm32f103r6\Libraries\STM32F10x_StdPeriph_Driver\inc\misc.h
............此处省略61个文件信息

评论

共有 条评论