资源简介
自己编写的stm32f103程序,程序作用是将stm32的定时器功能复用为编码器模式

代码片段和文件信息
/**************************************************************************//**
* @file core_cm3.c
* @brief CMSIS Cortex-M3 Core Peripheral Access layer Source File
* @version V1.30
* @date 30. October 2009
*
* @note
* Copyright (C) 2009 ARM Limited. All rights reserved.
*
* @par
* ARM Limited (ARM) is supplying this software for use with Cortex-M
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* @par
* THIS SOFTWARE IS PROVIDED “AS IS“. NO WARRANTIES WHETHER EXPRESS IMPLIED
* OR STATUTORY INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ARM SHALL NOT IN ANY CIRCUMSTANCES BE LIABLE FOR SPECIAL INCIDENTAL OR
* CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
*
******************************************************************************/
#include
/* define compiler specific symbols */
#if defined ( __CC_ARM )
#define __ASM __asm /*!< asm keyword for ARM Compiler */
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
#elif defined ( __ICCARM__ )
#define __ASM __asm /*!< asm keyword for IAR Compiler */
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
#elif defined ( __GNUC__ )
#define __ASM __asm /*!< asm keyword for GNU Compiler */
#define __INLINE inline /*!< inline keyword for GNU Compiler */
#elif defined ( __TASKING__ )
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
#endif
/* ################### Compiler specific Intrinsics ########################### */
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
/* ARM armcc specific functions */
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
__ASM uint32_t __get_PSP(void)
{
mrs r0 psp
bx lr
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
__ASM void __set_PSP(uint32_t topOfProcStack)
{
msr psp r0
bx lr
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the curren
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-11 09:32 My_write - 2(改)\
目录 0 2018-04-11 09:32 My_write - 2(改)\CORE\
文件 17273 2010-06-07 10:25 My_write - 2(改)\CORE\core_cm3.c
文件 85714 2011-02-09 14:59 My_write - 2(改)\CORE\core_cm3.h
文件 15503 2011-03-10 10:52 My_write - 2(改)\CORE\startup_stm32f10x_hd.s
文件 12765 2011-03-10 10:52 My_write - 2(改)\CORE\startup_stm32f10x_md.s
目录 0 2018-04-11 09:32 My_write - 2(改)\HARDWARE\
目录 0 2018-04-11 09:32 My_write - 2(改)\HARDWARE\ENCODE\
文件 915 2018-04-10 18:39 My_write - 2(改)\HARDWARE\ENCODE\angle.c
文件 102 2018-04-10 18:05 My_write - 2(改)\HARDWARE\ENCODE\angle.h
文件 5532 2018-04-10 15:14 My_write - 2(改)\HARDWARE\ENCODE\encode.c
文件 195 2018-04-10 11:53 My_write - 2(改)\HARDWARE\ENCODE\encode.h
目录 0 2018-04-11 09:32 My_write - 2(改)\HARDWARE\LED\
文件 1323 2018-04-10 11:39 My_write - 2(改)\HARDWARE\LED\led.c
文件 640 2014-03-20 19:03 My_write - 2(改)\HARDWARE\LED\led.h
目录 0 2018-04-11 09:32 My_write - 2(改)\HARDWARE\NVIC\
文件 2111 2016-08-08 10:01 My_write - 2(改)\HARDWARE\NVIC\nvic.c
文件 149 2016-01-25 11:45 My_write - 2(改)\HARDWARE\NVIC\nvic.h
目录 0 2018-04-11 17:07 My_write - 2(改)\HARDWARE\PID\
文件 3817 2018-04-11 17:07 My_write - 2(改)\HARDWARE\PID\pid.c
文件 1603 2018-04-11 14:16 My_write - 2(改)\HARDWARE\PID\pid.h
目录 0 2018-04-11 09:32 My_write - 2(改)\HARDWARE\PWM\
文件 2366 2014-03-24 21:14 My_write - 2(改)\HARDWARE\PWM\pwm.c
文件 106 2014-03-21 12:46 My_write - 2(改)\HARDWARE\PWM\pwm.h
文件 399 2011-04-23 10:24 My_write - 2(改)\keilkilll.bat
目录 0 2018-04-11 21:35 My_write - 2(改)\OBJ\
文件 350110 2018-04-11 09:34 My_write - 2(改)\OBJ\angle.crf
文件 1758 2018-04-11 09:34 My_write - 2(改)\OBJ\angle.d
文件 386032 2018-04-11 09:34 My_write - 2(改)\OBJ\angle.o
文件 3939 2018-04-11 09:34 My_write - 2(改)\OBJ\core_cm3.crf
文件 101 2018-04-11 09:34 My_write - 2(改)\OBJ\core_cm3.d
............此处省略133个文件信息
相关资源
- stm32f407上的两个can发送和接收例程
- STM32 led 时钟
- STM32 2.4G通信例程
- GBT 15532-2008 计算机软件测试规范
- 直流无刷电机方波驱动 stm32 例程代码
- 右键属性文件校验插件可同时生成十
- STM32中文资料
- STM32蓝牙和串口程序
- 联想y470无线网卡驱动 for 32位64位
- STM32f103超声波模块例程
- stm32f103c8t6 4 oled.rar
- DAC0832波形发生器幅值及频率都精确可
- stm32f030 IAP Demo(原创)
- 基于MIPS指令集的32位CPU设计与Verilog语
- 向SysListView32里的某一行发送双击消息
- [免费]A320可靠性计算分析
- USB转串口驱动,FT232R驱动程序,最新
- STM32基于rt_thread操作系统的SDHC卡文件
- CAD2010注册机32bit and 64bit
- 51模拟SPI读写SD卡(包括Fat和Fat32文件
- NRF24L01实现51与STM32双向通讯
- STM32F103 串口程序(完整版)
- stm32 ds18b20 温度传感器 测试通过
- stm32官方例程
- STM32F103定时器中断程序
- [免费]基于stm32f103ze 的OLED驱动代码
- STM32F103RBT6驱动UC1698控制芯片的160160黑
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- STM32定时器使用入门。看了这个程序会
- SIM908 SDIO FSMC STM32 FIFO
评论
共有 条评论