资源简介
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\Jli
文件 573 2016-07-28 16:34 19、Vibration\Jli
文件 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个文件信息
- 上一篇:HC-SR04超声波测距模块STM32源码
- 下一篇:船舶阻力和螺旋桨计算
相关资源
- I2C读写AT24C02 基于STM32F103 cube116540
- Scratch源码
- 基于stm32f103ve的程序——跑马灯实验
- 基于STM32RCT6的步进电机驱动程序
- E4A无障碍跨程序操作类库(带源码、
- 设备管理系统源码
- 安卓wifi直连app源码
- stm32f407上的两个can发送和接收例程
- STM32 led 时钟
- STM32 2.4G通信例程
- 我的世界源码(易语言版)
- labview编程软件滤波器以及编写程序设
- 我的界面(visual foxpro)源码
- 易语言:一键cf基址源码
- 直流无刷电机方波驱动 stm32 例程代码
- The Secret Path 3D 3D魔方迷宫[源码][scra
- scratch垃圾分类源码(最终版本).sb
- STM32中文资料
- STM32蓝牙和串口程序
- STM32f103超声波模块例程
- stm32f103c8t6 4 oled.rar
- 安卓QQ6.71协议源码易语言,qq协议源码
- 编译原理实验工具及参考源码(lex&
- E盾偷后台工具源码
- stm32f030 IAP Demo(原创)
- UNIX/LINUX编程实践教程的源码
- 十以内加减法练习 powerbuilder源码
- 农场开发项目
- OCR源码
- STM32基于rt_thread操作系统的SDHC卡文件
评论
共有 条评论