• 大小: 5.77MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-11
  • 语言: 其他
  • 标签: STM32  源码  

资源简介

1、适用于STM32RCT6最小系统板,SW-420常闭型震动传感器模块(工作电压3.3--5V,驱动电流>15mA) 2、具有看门狗防死机功能 3、具有查询或中断两种方式,使用查询方式时按键的NVIC_Init函数需屏蔽(中断方式效果更好) 4、通过滑动变阻器调节感应灵敏度,金属点一侧为高灵敏度(分压电阻小)

资源截图

代码片段和文件信息

/**************************************************************************//**
 * @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  19、Vibration\CORE\core_cm3.c

     文件      85714  2011-02-09 14:59  19、Vibration\CORE\core_cm3.h

     文件      15503  2011-03-10 10:52  19、Vibration\CORE\startup_stm32f10x_hd.s

     文件       1599  2018-12-21 10:42  19、Vibration\HARDWARE\delay.c

     文件        175  2015-09-28 15:18  19、Vibration\HARDWARE\delay.h

     文件       1338  2018-11-23 11:17  19、Vibration\HARDWARE\led.c

     文件        609  2018-12-20 11:57  19、Vibration\HARDWARE\led.h

     文件       1415  2018-12-29 10:29  19、Vibration\HARDWARE\sw420.c

     文件        291  2018-12-26 13:27  19、Vibration\HARDWARE\sw420.h

     文件       1372  2018-12-26 11:02  19、Vibration\HARDWARE\timer3.c

     文件        317  2018-07-27 11:38  19、Vibration\HARDWARE\timer3.h

     文件       3730  2019-01-17 10:31  19、Vibration\HARDWARE\usart1.c

     文件        391  2019-01-17 10:31  19、Vibration\HARDWARE\usart1.h

     文件       1705  2017-09-26 14:33  19、Vibration\HARDWARE\watchdog.c

     文件        272  2016-09-02 15:11  19、Vibration\HARDWARE\watchdog.h

     文件      80027  2018-12-26 13:32  19、Vibration\JlinkLog.txt

     文件        573  2016-07-28 16:34  19、Vibration\JlinkSettings.ini

     文件     348827  2018-03-21 14:22  19、Vibration\OBJ\adc1.crf

     文件       1571  2018-03-21 14:22  19、Vibration\OBJ\adc1.d

     文件     381548  2018-03-21 14:22  19、Vibration\OBJ\adc1.o

     文件       3662  2019-01-18 15:47  19、Vibration\OBJ\core_cm3.crf

     文件        112  2019-01-18 15:47  19、Vibration\OBJ\core_cm3.d

     文件      10784  2019-01-18 15:47  19、Vibration\OBJ\core_cm3.o

     文件     348481  2019-01-18 15:47  19、Vibration\OBJ\delay.crf

     文件       1572  2019-01-18 15:47  19、Vibration\OBJ\delay.d

     文件     380968  2019-01-18 15:47  19、Vibration\OBJ\delay.o

     文件     353728  2018-12-20 09:53  19、Vibration\OBJ\dht11.crf

     文件       1712  2018-12-20 09:53  19、Vibration\OBJ\dht11.d

     文件     386732  2018-12-20 09:53  19、Vibration\OBJ\dht11.o

     文件     348484  2018-08-01 10:17  19、Vibration\OBJ\dma.crf

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

评论

共有 条评论