资源简介
该程序是基于stm32f103zet6和HC-SR04的超声波测距程序,测距范围在4m内,通过串口通讯在串口助手上显示障碍物的距离。
代码片段和文件信息
/**************************************************************************//**
* @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 2018-11-26 10:41 超声波测距程序\
目录 0 2018-11-26 10:41 超声波测距程序\CORE\
文件 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
目录 0 2018-11-26 10:41 超声波测距程序\HARDWARE\
目录 0 2018-11-26 10:41 超声波测距程序\HARDWARE\LED\
文件 808 2018-09-05 11:38 超声波测距程序\HARDWARE\LED\led.c
文件 136 2018-11-04 11:06 超声波测距程序\HARDWARE\LED\led.h
目录 0 2018-11-26 10:41 超声波测距程序\HARDWARE\TIMER\
文件 3178 2018-11-13 21:38 超声波测距程序\HARDWARE\TIMER\timer.c
文件 149 2018-11-14 10:37 超声波测距程序\HARDWARE\TIMER\timer.h
目录 0 2018-11-26 10:41 超声波测距程序\OBJ\
文件 549212 2018-11-16 17:33 超声波测距程序\OBJ\Template.axf
文件 1517 2018-11-16 17:33 超声波测距程序\OBJ\Template.build_log.htm
文件 27665 2018-11-16 17:33 超声波测距程序\OBJ\Template.hex
文件 67047 2018-11-16 17:33 超声波测距程序\OBJ\Template.htm
文件 1125 2018-11-16 17:33 超声波测距程序\OBJ\Template.lnp
文件 68103 2018-11-16 17:33 超声波测距程序\OBJ\Template_Template.dep
文件 3962 2018-11-15 17:25 超声波测距程序\OBJ\core_cm3.crf
文件 124 2018-11-15 17:25 超声波测距程序\OBJ\core_cm3.d
文件 11320 2018-11-15 17:25 超声波测距程序\OBJ\core_cm3.o
文件 349975 2018-11-15 17:25 超声波测距程序\OBJ\delay.crf
文件 1689 2018-11-15 17:25 超声波测距程序\OBJ\delay.d
文件 385688 2018-11-15 17:25 超声波测距程序\OBJ\delay.o
文件 349547 2018-11-15 17:25 超声波测距程序\OBJ\led.crf
文件 1621 2018-11-15 17:25 超声波测距程序\OBJ\led.d
文件 382476 2018-11-15 17:25 超声波测距程序\OBJ\led.o
文件 354707 2018-11-16 17:33 超声波测距程序\OBJ\main.crf
文件 1816 2018-11-16 17:33 超声波测距程序\OBJ\main.d
文件 390000 2018-11-16 17:33 超声波测距程序\OBJ\main.o
............此处省略164个文件信息
- 上一篇:机器码修改神奇
- 下一篇:捷联惯导算法与卡尔曼滤波原理讲义
相关资源
- HC-SR04超声波模块+STM32F103
- 基于STM32单片机的空气净化器毕业设计
- STM32汉字显示实验例程
- STM32单片机计步器程序
- 基于STM32F103ZET6芯片的超声波模块HC-
- 基于STM32单片机全向遥控机器人的设计
- 基于STM32单片机智能手环脉搏心率计步
- stm32单片机开发三菱PLC(模仿)代码
- 基于STM32单片机与12864液晶的万年历时
- STM32超声波测距代码-HC-SR04.zip
- 基于stm32单片机的MQ-3酒精模块检测程
- STM32单片机和ZigBee的协调器基本通信协
- GP2Y1010AU0F pm2.5传感器于stm32单片机的工
- 基于stm32单片机的xy平台写字机
- HC-SR04超声波测距显示LED灯闪烁
- stm32单片机lcd12864串行程序
- STM32F103ZET6单片机CAN总线通信程序例程
- STM32F10X 和HC-SR04 测距
- LCD12864串行显示DS18B20温度和超声波测
- 嵌入式linux之mini2440的hc-sr04超声波驱动
- 超声模块HC-SR04说明及例程
- 基于STM32单片机的指纹识别模块的测试
- stm32单片机读取sht11
- STM32单片机SHT3X.zip
- 基于HC-SR04超声波测距LCD12864显示源码
- MSP430G2*单片机利用HC-SR04测距
- STM32单片机实现二维码显示
- STM32单片机WS2812B驱动程序灯效程序
- stm32f103rc_hcsr04.rar
- HC-SR04超声波测距模块及原理图
评论
共有 条评论