资源简介
STM32F103系列采用模拟IIC方式驱动了BMP280,并获得正确的温度、气压以及海拔高度,注意,BMP280模块的CSB接3.3V,SDO接地
代码片段和文件信息
/**************************************************************************//**
* @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 2017-07-26 16:26 Get Pressure\
目录 0 2017-07-26 16:26 Get Pressure\CORE\
文件 17273 2010-06-07 10:25 Get Pressure\CORE\core_cm3.c
文件 85714 2011-02-09 14:59 Get Pressure\CORE\core_cm3.h
文件 15503 2011-03-10 10:52 Get Pressure\CORE\startup_stm32f10x_hd.s
文件 12765 2011-03-10 10:52 Get Pressure\CORE\startup_stm32f10x_md.s
目录 0 2017-07-26 16:26 Get Pressure\HARDWARE\
目录 0 2017-07-26 16:26 Get Pressure\HARDWARE\BMP280\
文件 13594 2017-07-25 20:22 Get Pressure\HARDWARE\BMP280\bm280.c
文件 8609 2017-07-25 20:14 Get Pressure\HARDWARE\BMP280\bm280.h
文件 6864 2017-07-26 14:43 Get Pressure\HARDWARE\BMP280\bmp280.c
文件 1878 2017-07-26 14:44 Get Pressure\HARDWARE\BMP280\bmp280.h
目录 0 2017-07-26 16:26 Get Pressure\HARDWARE\IIC\
文件 5653 2017-07-26 14:30 Get Pressure\HARDWARE\IIC\myiic.c
文件 1734 2017-07-26 14:21 Get Pressure\HARDWARE\IIC\myiic.h
目录 0 2017-07-26 16:26 Get Pressure\HARDWARE\LCD\
文件 35016 2014-01-02 17:22 Get Pressure\HARDWARE\LCD\FONT.H
文件 85631 2015-08-12 18:19 Get Pressure\HARDWARE\LCD\lcd.c
文件 8193 2015-08-12 18:19 Get Pressure\HARDWARE\LCD\lcd.h
目录 0 2017-07-26 16:26 Get Pressure\HARDWARE\LED\
文件 1301 2014-03-20 20:13 Get Pressure\HARDWARE\LED\led.c
文件 640 2014-03-20 19:03 Get Pressure\HARDWARE\LED\led.h
目录 0 2017-07-26 16:26 Get Pressure\OBJ\
文件 374949 2017-07-26 14:53 Get Pressure\OBJ\bm280.crf
文件 1993 2017-07-26 14:53 Get Pressure\OBJ\bm280.d
文件 426072 2017-07-26 14:53 Get Pressure\OBJ\bm280.o
文件 367586 2017-07-26 14:53 Get Pressure\OBJ\bmp280.crf
文件 2034 2017-07-26 14:53 Get Pressure\OBJ\bmp280.d
文件 407588 2017-07-26 14:53 Get Pressure\OBJ\bmp280.o
文件 3945 2017-07-24 08:06 Get Pressure\OBJ\core_cm3.crf
文件 107 2017-07-24 08:06 Get Pressure\OBJ\core_cm3.d
............此处省略167个文件信息
相关资源
- STM32F1通过模拟IIC接口与BME280通信,获
- STM32F103_ADC代码——直接移植即可用
- STM32F103C8T6 2.4G nrf24l01无线模块通信代
- 基于STM32F103C8T6的双柄遥控板DMA采样工
- uCOSII移植STM32F103C8T6范例工程
- STM32F103 串口DMA+空闲中断接收
- 16路模块 PWM舵机驱动板 控制器 机器人
- STM32F103开发板的原理图及PCB
- STM32F103ZET6+FreeRTOS V8.2.3+kfifo巧夺天工
- STM32F103C8T6_FreeRTOS_V10.0_RTC作为FreeRTOS时
- STM32F103RCT6资料
- 基于stm32f103VET的ucosIII/ucos3工程keil5,
- stm32f103rct6最小系统原理图、PCB及AD封
- DS1302程序开发运用在STM32F103
- 基于stm32f103的蓝牙通信模块
- stm32f103RCT6-USB->UART
- stm32f103双串口收发.zip
- 两路DMA_DAC_stm32f103rct6.zip
- 基于野火STM32指南者的篮球计分器
- 9.4.2基于STM32f103的信号发生器+示波器
- stm32f103串行驱动LCD12864
- STM32库函数硬件IIC个人修改稳定可用
- 触摸芯片XW12A
- 基于stm32f103的tsl2561光强传感器程序
- STM32F103+ W5500 USART转以太网 TcpServer
- stm32f103的正弦波代码
- stm32f103usb游戏手柄项目 可用于usb键盘
- stm32f103rct6开发资料 小系统 开发文档
- STM32F103VET6+STM32F103ZET6+STM32F107VC核心板
- STM32F103C8T6 串行驱动 12864屏幕
评论
共有 条评论