资源简介
此程序使用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 2013-08-07 16:14 频率计\
目录 0 2013-08-07 16:14 频率计\Libraries\
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\CM3\
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\CM3\CoreSupport\
文件 17273 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c
文件 85714 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\CM3\DeviceSupport\
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\
文件 15763 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_cl.s
文件 15500 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s
文件 15767 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd_vl.s
文件 12373 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld.s
文件 13653 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld_vl.s
文件 12762 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md.s
文件 14070 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md_vl.s
文件 15952 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_xl.s
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\
文件 12955 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_cl.s
文件 13042 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd.s
文件 12451 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd_vl.s
文件 9698 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld.s
文件 10445 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld_vl.s
文件 10154 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md.s
文件 10941 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md_vl.s
文件 13143 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_xl.s
目录 0 2013-08-07 16:14 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\
文件 16629 2010-10-18 20:09 频率计\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_cl.s
............此处省略182个文件信息
- 上一篇:linux多人聊天室管理系统
- 下一篇:ZBar二维码扫描Demo
相关资源
- CanFestival移植至战舰STM32F1开发板
- ADS1256资料大集合
- STM32F103的DS1820温度测量工程代码包+
- STM32F4系列 不同定时器的PWM输出多达
- STM32,超声波测距模块HC_SR04,1602显示
- STM32平衡车代码
- STM32L0中文参考手册新版
- STM32中编码器脉冲捕获
- esp8266和stm32驱动之三实现访问网站获
- APDS9960基于STM32的驱动程序
- STM32+RC522--demo.rar
- stm32f103_IAPbootloader-1.0及用户app修改好
- INA219f1.zip
- lcd1602.zip
- (STM32F407)C610电调+M2006电机.rar
- 基于STM32F407的超声波智能跟随小车
- STM32F1战舰原理图+PCB源文件
- 基于STM32示波器 DDS信号发生器.zip
- VL53L0X 3.0 RCWL-0800激光测距
- stm32f1控制电磁阀+舵机+ADC推杆
- 基于STM32内部rtc的智能闹钟源代码
- STM32F103 模糊自整定增量式PID控制电机
- STM32F103系列 普通增量式PID控制速度程
- 空气检测质点 stm32f103c8t6+lora+pm2.5+温湿
- 基于STM32的数字字符识别.zip
- STM32L0XX 低功耗程序源码
- STM32f103避障智能小车源码
- STM32F407定高超声波避障激光雷达.rar
- STM32F103C8T6电路原理图及PCB图
- STM32+MQTT协议功能实现
评论
共有 条评论