资源简介
用于stm32的hcsr04控制模板,代码为项目所用,调试无bug,可通过修改收发引脚达到串行控制多个超声波模块的效果,代码移植方便,逻辑清楚,实时打印距离,欢迎下载调试!
代码片段和文件信息
/**************************************************************************//**
* @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 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\core_cm3.c
文件 85714 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\core_cm3.h
文件 15766 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\startup\startup_stm32f10x_cl.s
文件 15503 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\startup\startup_stm32f10x_hd.s
文件 15692 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\startup\startup_stm32f10x_hd_vl.s
文件 12376 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\startup\startup_stm32f10x_ld.s
文件 13656 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\startup\startup_stm32f10x_ld_vl.s
文件 12765 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\startup\startup_stm32f10x_md.s
文件 14073 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\startup\startup_stm32f10x_md_vl.s
文件 15955 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\startup\startup_stm32f10x_xl.s
文件 633941 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\stm32f10x.h
文件 36557 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\system_stm32f10x.c
文件 2085 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\CMSIS\system_stm32f10x.h
文件 8982 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\misc.h
文件 21690 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_adc.h
文件 7555 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_bkp.h
文件 27559 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_can.h
文件 6573 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_cec.h
文件 2162 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_crc.h
文件 15233 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_dac.h
文件 3818 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_dbgmcu.h
文件 20754 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_dma.h
文件 6824 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_exti.h
文件 25445 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_flash.h
文件 27016 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_fsmc.h
文件 20175 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_gpio.h
文件 30029 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_i2c.h
文件 3828 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_iwdg.h
文件 4383 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_pwr.h
文件 30452 2017-04-10 17:34 STM32F103VE_SONIC_V2.0多超声波串行\FWlib\inc\stm32f10x_rcc.h
............此处省略131个文件信息
- 上一篇:车辆保险管理系统
- 下一篇:DRV8711步进电机.zip
相关资源
- OSLW移植.rar
- fdc2214读电容值STM32
- 单片机病房呼叫系统
- 基于stm32点亮8_8max7219点阵灯共阴点阵
- 基于51单片机的智能晾衣架设计.docx
- 基于STM32F103的FM收音机 TEA5767
- ADS1110stm32驱动自带I2C驱动
- 基于单片机控制的智能窗帘控制系统
- STM32+ZE08-CH2O甲醛传感器+LCD1602显示.r
- 基于STM32f103c8t6的LCD2004.rar
- 压控增益放大器(VCA)模块(VCA810)
- stm32驱动74HC595和74HC165 74hc165采集数据
- STM32-SHT20温湿度传感器驱动程序
- STM32F1 TIM1、TIM8产生带移项角的带死区
- STM32F103C8T6-DHT11温湿度传感器.rar
- STM32F407 SD卡IAP升级
- OV5640_二值化.rar
- 51单片机简易电子琴设计
- stm32f103读取MPU9250初始数据程序
- STM32F103 SHT20
- 单片机 PROTUES仿真大全(附带原理图)
- 基于STM32F103C8T6及NRF24L01的摔倒检测+
- STM32步进电机H桥驱动控制原理图+源代
- STM32F103驱动AD7606傅里叶采用交流信号
- STM32_无线控制
- STM32-ESP8266-AT
- stm32f4模拟时序驱动LCD显示
- STM32串口控制LED灯
- 基于51单片机的电机转速监测
- STM32跑马灯
评论
共有 条评论