• 大小: 0.05M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-29
  • 标签: STM32  STM32F1  LED  流水灯  

资源简介


资源截图

代码片段和文件信息

#include “stm32f10x.h“

#define  uint32_t unsigned int

void delay_ms(uint32_t time)
{
   uint32_t i=0;
   while(time--)
{
   i=12000;
   while(i--) ;
}
}
int main(void)
{
//
//    //打开GPIOB的时钟
// *(unsigned int *)0X40021018 |=((1)<<3);
//
// //配置IO口为输出
// *(unsigned int *)0x40010c00 &=~((0x0f)<<(4*5));
//  *(unsigned int *)0x40010c00 |=((1)<<(4*5));
//
// //控制ODR寄存器
// //*(unsigned int *)0x40010c0c &=~(1<<5);

// //打开GPIOE的时钟
// *(unsigned int *)0x40021018 |=((1)<<6);
//
// //配置IO口为输出
// *(unsigned int *)0x40011800 &=~((0x0f)<<(4*5));
//  *(unsigned int *)0x40011800 |=((1)<<(4*5));
//
// //控制ODR寄存器
// //*(unsigned int *)0x4001180c &=~(1<<5);
// while(1)
// {   
//  
//     *(unsigned int *)0x40010c0c &=~(1<<5);
////   *(unsigned int *)0x400118

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        1234  2019-07-28 11:08  LED.txt
     目录           0  2019-07-27 20:47  Listings\
     文件       49136  2019-07-28 10:51  Listings\startup_stm32f10x_hd.lst
     文件       53085  2019-07-28 14:53  Listings\Template.map
     文件        3049  2019-07-28 14:53  main.c
     目录           0  2019-07-28 14:53  objects\
     文件        1743  2019-07-28 14:53  objects\main.crf
     文件          57  2019-07-28 14:53  objects\main.d
     文件       10720  2019-07-28 14:53  objects\main.o
     文件          58  2019-07-28 10:51  objects\startup_stm32f10x_hd.d
     文件        6720  2019-07-28 10:51  objects\startup_stm32f10x_hd.o
     文件       15248  2019-07-28 14:53  objects\Template.axf
     文件        1379  2019-07-28 14:53  objects\Template.build_log.htm
     文件        2420  2019-07-28 14:53  objects\Template.hex
     文件       38627  2019-07-28 14:53  objects\Template.htm
     文件         306  2019-07-28 14:53  objects\Template.lnp
     文件         479  2019-07-27 20:47  objects\Template.sct
     文件         849  2019-07-28 14:53  objects\Template_Target 1.dep
     文件       15682  2014-03-21 11:30  startup_stm32f10x_hd.s
     文件        1475  2019-07-28 14:37  stm32f10x.h
     文件       71079  2019-07-28 08:21  Template.uvguix.18074
     文件        6272  2019-07-27 21:09  Template.uvoptx
     文件       15458  2019-07-27 21:09  Template.uvprojx

评论

共有 条评论