/**
******************************************************************************
* @file readme.txt
* @author 王元
* @version V1.0
* @date 2016-4-4
* @brief 用于记录工程文档改变的日志
******************************************************************************
* @attention
*
* 芯片型号: STM32F103VET6
*
******************************************************************************
*/
2016.4.12 xiaoyuan
该工程文件结构:
USER-------stm32f10x.c,stm32f10x.h(中断服务函数);stm32f10x_conf.h(片上外设配置头文件);main.c(主函数)
HARDWARE---存放用户编写的硬件资源程序
FWLIB------STM32F10x_StdPeriph_Lib_V3.5.0 (V3.5固件库)
CMSIS------system_stm32f10x.c,core_cm3.c (核内外设函数文件);stm32f10x.h (外设寄存器定义和中断向量表定义)
system_stm32f10x.h,core_cm3.h
STARTCODE--启动代码
DOC--------工程说明文档
一些重要文件的介绍:
core_cm3.c,core_cm3.h是位于CMSIS标准的核内设备函数层的CM3核通用文件,为芯片外设提供一个进入CM3内核的接口
system_stm32f10x.c,system_stm32f10x.h 设置系统的时钟和总线时钟。
stm32f10x.h 包含了STM32中寄存器地址和结构体类型定义,在使用到STM32固件库的地方都要包含这个头文件。
启动文件:是任何处理器在上电复位之后最先运行的一段汇编程序(用汇编语言为C语言的运行建立一个合适的运行环境)
(1)初始化堆栈指针SP
(2)初始化程序计数器指针PC
(3)设置堆栈的大小
(4)设置异常向量表的入口地址
(5)配置外部SRAM作为数据存储器 (由用户配置)
(6)设置C库的分支入口__main(最终用来调用main函数)
常用类型的一些定义,定义在stdint.h文件中:
/* exact-width signed integer types */
typedef signed char int8_t; //字符型变量
typedef signed short int int16_t; //有符号短整形
typedef signed int int32_t; //有符号长整形
typedef signed __INT64 int64_t;
/* exact-width unsigned integer types */
typedef unsigned char uint8_t; //无符号字符型
typedef unsigned short int uint16_t; //无符号短整形
typedef unsigned int uint32_t; //无符号长整形
typedef unsigned __INT64 uint64_t;
2016/12/7 V1.5
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STM32编码器模式测试例程 (109个子文件)
keilkilll.bat 399B
stm32f10x_tim.c 107KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_gpio.c 23KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
stm32f10x_cec.c 11KB
flash.c 9KB
flash.c 9KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
misc.c 7KB
stm32f10x_exti.c 7KB
ws2812.c 6KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
usart1.c 5KB
stm32f10x_it.c 4KB
stm32f10x_crc.c 3KB
spi.c 3KB
jsn-sr04t.c 3KB
key.c 2KB
tim2.c 2KB
max6675.c 2KB
delay.c 1KB
servo.c 846B
beep.c 727B
led.c 632B
relay.c 567B
human_induction.c 534B
photoresistor.c 524B
encoder.c 520B
main.c 436B
chip.c 426B
Target_1_STM32F103C8.dbgconf 7KB
Servo_STM32F103C8.dbgconf 7KB
Encoder_STM32F103C8.dbgconf 7KB
stm32f10x.h 619KB
core_cm3.h 84KB
stm32f10x_tim.h 51KB
stm32f10x_rcc.h 30KB
stm32f10x_i2c.h 29KB
stm32f10x_can.h 27KB
stm32f10x_fsmc.h 26KB
stm32f10x_flash.h 25KB
stm32f10x_sdio.h 21KB
stm32f10x_adc.h 21KB
stm32f10x_dma.h 20KB
stm32f10x_gpio.h 20KB
stm32f10x_spi.h 17KB
stm32f10x_usart.h 16KB
stm32f10x_dac.h 15KB
misc.h 9KB
stm32f10x_bkp.h 7KB
stm32f10x_exti.h 7KB
stm32f10x_cec.h 6KB
stm32f10x_pwr.h 4KB
stm32f10x_rtc.h 4KB
stm32f10x_iwdg.h 4KB
stm32f10x_dbgmcu.h 4KB
chip.h 3KB
stm32f10x_conf.h 3KB
stm32f10x_wwdg.h 3KB
flash.h 2KB
stm32f10x_crc.h 2KB
stm32f10x_it.h 2KB
system_stm32f10x.h 2KB
flash.h 2KB
usart1.h 1KB
ws2812.h 934B
key.h 610B
jsn-sr04t.h 586B
max6675.h 403B
tim2.h 401B
human_induction.h 382B
photoresistor.h 346B
servo.h 335B
relay.h 296B
led.h 249B
spi.h 237B
beep.h 236B
encoder.h 209B
delay.h 175B
stm32c8t6_template.hex 21KB
JLinkSettings.ini 755B
startup_stm32f10x_xl.s 16KB
startup_stm32f10x_cl.s 15KB
startup_stm32f10x_hd_vl.s 15KB
共 109 条
- 1
- 2
顶点元
- 粉丝: 1462
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页