资源简介
适用于STM32F103RCT6,EC11或EC12旋转编码器的脉冲个数的计数或正向或反向的检测。对一些性能较差的旋转编码器会出现不稳定的现象,也可能是程序有些纰漏,欢迎交流!
代码片段和文件信息
/**************************************************************************//**
* @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 2020-02-01 19:43 旋转编码器脉冲计数及转向检测\CORE\
文件 17273 2010-06-07 10:25 旋转编码器脉冲计数及转向检测\CORE\core_cm3.c
文件 85714 2011-02-09 14:59 旋转编码器脉冲计数及转向检测\CORE\core_cm3.h
文件 15503 2011-03-10 10:52 旋转编码器脉冲计数及转向检测\CORE\startup_stm32f10x_hd.s
文件 12765 2011-03-10 10:52 旋转编码器脉冲计数及转向检测\CORE\startup_stm32f10x_md.s
目录 0 2020-02-01 21:10 旋转编码器脉冲计数及转向检测\HARDWARE\
目录 0 2020-02-01 21:12 旋转编码器脉冲计数及转向检测\HARDWARE\TIMER\
文件 5107 2020-02-01 21:12 旋转编码器脉冲计数及转向检测\HARDWARE\TIMER\timer.c
文件 173 2020-01-12 14:32 旋转编码器脉冲计数及转向检测\HARDWARE\TIMER\timer.h
文件 399 2011-04-23 10:24 旋转编码器脉冲计数及转向检测\keilkilll.bat
目录 0 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\
文件 3942 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\core_cm3.crf
文件 104 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\core_cm3.d
文件 11308 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\core_cm3.o
文件 349943 2020-02-01 21:41 旋转编码器脉冲计数及转向检测\OBJ\delay.crf
文件 1669 2020-02-01 21:41 旋转编码器脉冲计数及转向检测\OBJ\delay.d
文件 383964 2020-02-01 21:41 旋转编码器脉冲计数及转向检测\OBJ\delay.o
文件 348904 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\ICAPTURE.axf
文件 1740 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\ICAPTURE.build_log.htm
文件 27448 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\ICAPTURE.hex
文件 78060 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\ICAPTURE.htm
文件 554 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\ICAPTURE.lnp
文件 479 2019-11-01 22:11 旋转编码器脉冲计数及转向检测\OBJ\ICAPTURE.sct
文件 26790 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\ICAPTURE_Target 1.dep
文件 349502 2020-02-01 20:08 旋转编码器脉冲计数及转向检测\OBJ\led.crf
文件 1601 2020-02-01 20:08 旋转编码器脉冲计数及转向检测\OBJ\led.d
文件 381628 2020-02-01 20:08 旋转编码器脉冲计数及转向检测\OBJ\led.o
文件 354447 2020-02-01 21:41 旋转编码器脉冲计数及转向检测\OBJ\main.crf
文件 1762 2020-02-01 21:41 旋转编码器脉冲计数及转向检测\OBJ\main.d
文件 387548 2020-02-01 21:41 旋转编码器脉冲计数及转向检测\OBJ\main.o
文件 348900 2020-02-01 21:42 旋转编码器脉冲计数及转向检测\OBJ\misc.crf
............此处省略108个文件信息
- 上一篇:ETC电子发票台账.rar
- 下一篇:flowpla
yer商业破解版
评论
共有 条评论