• 大小: 3.22MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-13
  • 语言: 其他
  • 标签: STM32  Keil  

资源简介

开发环境:Keil 4.72 仿真器:ULINK STM32F103T8 (直接用在STM32F103VE也可以) stm32 在RAM中调试,已测试通过,可支持中断,程序用了串口和LED灯指示

资源截图

代码片段和文件信息

/**
  ******************************************************************************
  * @file    delay.c 
  * @author  wu
  * @version V1.0
  * @date    2014-2-21
  ******************************************************************************
  */  
#include “delay.h“

static __IO uint32_t TimingDelay;

void Delay_Init(void)
{
RCC_ClocksTypeDef RCC_Clocks;
RCC_GetClocksFreq(&RCC_Clocks);
    SysTick_Config(RCC_Clocks.HCLK_Frequency / 1000000);
}

//---------------delay_us---------------
void Delay_Us(__IO uint32_t nTime)
{
  TimingDelay = nTime;
  while(TimingDelay != 0);
}

//--------------delay_ms----------------
void Delay_Ms(__IO uint32_t nTime)
{
uint32_t i;
for(i=0; i< nTime; i++)
  Delay_Us(999);
}

//-------------SysTick call this function-----
void TimingDelay_Decrement(void)
{
  if(TimingDelay != 0x00)
  { 
    TimingDelay--;
  }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-06-16 17:44  Run-RAM\
     目录           0  2014-06-17 14:47  Run-RAM\App\
     文件         906  2014-06-16 17:42  Run-RAM\App\delay.c
     文件         457  2014-04-23 17:19  Run-RAM\App\delay.h
     文件        1675  2014-02-20 11:28  Run-RAM\App\exti.c
     文件         370  2014-02-20 11:28  Run-RAM\App\exti.h
     文件        1023  2014-06-16 14:54  Run-RAM\App\led.c
     文件         473  2014-06-16 14:54  Run-RAM\App\led.h
     文件        2884  2014-06-17 14:47  Run-RAM\App\usart.c
     文件         610  2014-04-04 10:58  Run-RAM\App\usart.h
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\CMSIS\
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\CMSIS\CM3\
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\CMSIS\CM3\CoreSupport\
     文件       17273  2010-06-07 10:25  Run-RAM\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c
     文件       85714  2011-02-09 14:59  Run-RAM\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\
     文件       26297  2011-03-14 12:31  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\Release_Notes.html
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\
     文件       12604  2011-03-10 10:54  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_cl.s
     文件       12592  2011-03-10 10:53  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_hd.s
     文件       12239  2011-03-10 10:53  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_hd_vl.s
     文件        9826  2011-03-10 10:53  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_ld.s
     文件       10275  2011-03-10 10:53  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_ld_vl.s
     文件       10275  2011-03-10 10:53  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_md.s
     文件       10757  2011-03-10 10:53  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_md_vl.s
     文件       13252  2011-03-10 10:53  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_xl.s
     目录           0  2014-06-16 17:44  Run-RAM\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\
............此处省略197个文件信息

评论

共有 条评论