资源简介
自己编写的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个文件信息
相关资源
- stm32 ppm解码
- 基于stm32f407的贪吃蛇
- 基于STM32的WIFI模块进行数据传输
- 基于STM32系统的ATT7022计量芯片智能电
- STM32战舰版RC522使用例程
- 基于STM32的ADC采样(双通道)
- 基于是stm32的PWM呼吸灯
- STM32+OV7670+LCDTFT显示256灰阶
- STM32使用LCD屏显示串口数据
- SGP30_PM2.5_STM32F103.rar
- 基于STM32的热水器设计毕业设计
- 基于stm32的信号发生器
- STM32模拟VGA时序,单色显示
- STM32F072多路DS18B20温度传感器
- STM32F407引脚说明
- STM32读取MPU6050官方DMP库
- stm32——万年历
- STM32 CAN收发程序
- STM32 USB读取MicroSD卡模拟U盘
- STM32AES加密程序.zip
- STM32使用4x4矩阵薄膜键盘
- STM32旋转编码器程序
- BIOSU80GT2g+32g).rar
- stm32f103+2路USART+SPI+CAN+FreeRTOS操作系统
- 蓝牙控制8个舵机STM32F407+pca9685+HC06
- 野火STM32F10X例程源码_重力感应(MMA
- SD卡读写规范、时序图、FAT32文件系统
- Olympus显微镜STM6说明书
- chromedriver_win32.zip
- 智能车程序 PID 循迹
评论
共有 条评论