• 大小: 11.72MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-29
  • 语言: 其他
  • 标签:

资源简介

使用STM32F1平台实现了输入捕获测频率的功能,能够在2.8寸TFT液晶上显示汉字及测频数值,以及输入捕获计算值。

资源截图

代码片段和文件信息

/**************************************************************************//**
 * @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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      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

     文件       3425  2015-02-11 12:11  输入捕获测频\FATFS\doc\css_e.css

     文件       3840  2015-02-12 20:17  输入捕获测频\FATFS\doc\css_j.css

     文件        125  2015-02-11 12:11  输入捕获测频\FATFS\doc\css_p.css

     文件       1063  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\app1.c

     文件       1609  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\app2.c

     文件       3810  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\app3.c

     文件      10365  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\app4.c

     文件       1414  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\f1.png

     文件       1458  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\f2.png

     文件       1039  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\f3.png

     文件       2335  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\f4.png

     文件       2479  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\f5.png

     文件       1464  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\f6.png

     文件      11388  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\f7.png

     文件      14357  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\funcs.png

     文件       5521  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\layers.png

     文件       3843  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\layers1.png

     文件       3741  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\layers2.png

     文件       2379  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\layers3.png

     文件     686662  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\mkfatimg.zip

     文件       7932  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\modules.png

     文件      19068  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\rwtest.png

     文件       8153  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\rwtest2.png

     文件       3011  2015-02-11 12:11  输入捕获测频\FATFS\doc\img\rwtest3.png

     文件       5926  2015-02-11 12:11  输入捕获测频\FATFS\doc\updates.txt

     文件       3750  2015-04-01 15:12  输入捕获测频\FATFS\exfuns\exfuns.c

     文件       2122  2015-03-07 12:24  输入捕获测频\FATFS\exfuns\exfuns.h

............此处省略276个文件信息

评论

共有 条评论

相关资源