资源简介
基于stm32f103vc的智能小车源码,运用超声波传感器HC-SR04实现避障,实现控制CDS5516舵机的旋转。
代码片段和文件信息
/**************************************************************************//**
* @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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.CA.... 17273 2010-06-07 10:25 STM32main\CMSIS\core_cm3.c
.CA.... 85714 2011-02-09 14:59 STM32main\CMSIS\core_cm3.h
.CA.... 15766 2011-03-10 10:52 STM32main\CMSIS\startup\arm\startup_stm32f10x_cl.s
.CA.... 15503 2011-03-10 10:52 STM32main\CMSIS\startup\arm\startup_stm32f10x_hd.s
.CA.... 15692 2011-03-10 10:52 STM32main\CMSIS\startup\arm\startup_stm32f10x_hd_vl.s
.CA.... 12376 2011-03-10 10:52 STM32main\CMSIS\startup\arm\startup_stm32f10x_ld.s
.CA.... 13656 2011-03-10 10:52 STM32main\CMSIS\startup\arm\startup_stm32f10x_ld_vl.s
.CA.... 12765 2011-03-10 10:52 STM32main\CMSIS\startup\arm\startup_stm32f10x_md.s
.CA.... 14073 2011-03-10 10:51 STM32main\CMSIS\startup\arm\startup_stm32f10x_md_vl.s
.CA.... 15955 2011-03-10 10:51 STM32main\CMSIS\startup\arm\startup_stm32f10x_xl.s
.CA.... 633941 2011-03-10 10:51 STM32main\CMSIS\stm32f10x.h
.CA.... 36557 2011-03-10 10:51 STM32main\CMSIS\system_stm32f10x.c
.CA.... 2085 2011-03-10 10:51 STM32main\CMSIS\system_stm32f10x.h
.CA.... 8982 2011-03-10 10:47 STM32main\FWLib\inc\misc.h
.CA.... 21690 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_adc.h
.CA.... 7555 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_bkp.h
.CA.... 27559 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_can.h
.CA.... 6573 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_cec.h
.CA.... 2162 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_crc.h
.CA.... 15233 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_dac.h
.CA.... 3818 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_dbgmcu.h
.CA.... 20754 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_dma.h
.CA.... 6824 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_exti.h
.CA.... 25445 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_flash.h
.CA.... 27016 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_fsmc.h
.CA.... 20175 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_gpio.h
.CA.... 30029 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_i2c.h
.CA.... 3828 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_iwdg.h
.CA.... 4383 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_pwr.h
.CA.... 30452 2011-03-10 10:47 STM32main\FWLib\inc\stm32f10x_rcc.h
............此处省略193个文件信息
相关资源
- STM32F407定高超声波避障激光雷达.rar
- STM32F103C8T6电路原理图及PCB图
- STM32+MQTT协议功能实现
- 基于STM32的红外避障代码
- 基于STM32F407的OPENMV设计资料
- openmv+stm32+as608
- stm32三个串口同时使用的工程
- w25q16/w25x16驱动代码,使用cube库编写,
- stm32模拟iic驱动bh1750
- GY-30 光强度模块 STM32程序
-
STli
nk刷Jli nk工具 版本190812 支持 - 移远EC20建立多路SOCKT发数据_TCP
- 基于stm32的温度与ph源代码.zip
- STM32F103VET6简单驱动舵机MG-996R.rar
- STM32-LCD1602显示proteus仿真实验
- STM32F103C8T6下位机PCB设计-基于惯性测量
- stm32单片机 超声波+蜂鸣器+led 代码
- stm32控制舵机
- STM32F4串口二配置
- AD7705stm32程序
- ADS1118的STM32驱动程序
- 基于stm32单片机多功能计步手环
- 基于STM32的RC663编程
- STM32F103-GPIO-按键检测
- 基于STM32F103C8T6的电机控制程序
- STM32F103开发案例
- STM32F103使用SPI方式读取惯导传感器A
- STM32F407读取MPU9250原始数据
- STM32F103C8 2路PWM捕捉 2路串口输出
- 基于STM32F103的RS485通信主动发送中断接
评论
共有 条评论