资源简介
STM32F103的程序,显示SHT30温湿度模块的温湿度。
OLED(IIC接口)屏幕的温湿度显示,也有串口数据输出。
为了作对比,我顺便把DS18B20的温度显示也写进去了,然后改下注释也可输出DS18B20温度数据。
代码片段和文件信息
/**************************************************************************//**
* @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
- 上一篇:爬虫项目完整代码
- 下一篇:LSBRSA的图片隐藏技术.zip
相关资源
- 指纹锁(门禁应用).rar
- 《STM32开发指南》第三十四章 ADXL345三
- STM32的FLASH模拟EEPROM程序,亲测可用
- STM32F103RCT6使用I2C通讯PCF8591数模转换模
- stm32f103c8t6+ESP826 设置为AP模式
- STM32如何通过USB转串口线程序
- STM32F4076路串口DMA发送&接收实验
- 几十个开源的STM32项目.zip
- stm32f10x相关库文件 (包含: stm32f10x
- keil uVision5纯黑背景 keil字体颜色配置
- 芯达STM32 《如何使用SecureCRT串口终端
- STM32F103,4*4矩阵按键
- STM32F103C8T6核心板测试程序(RTC).ra
- FlashTool STM32F103ZET6通过USB串口烧写
- STM32FOC电机控制角度速度计算源代码
- STM32晶振选型-晶振不起振-晶振及负载
- stm32_实现Modbus,采用rtu,内含通信协
- STM32 ADCDMA实现
- STM32F103通过模拟IIC读取LIS3DH 解析数据
- 基于STM32的智能小型机械臂设计
- STM32f407 SDcard
- 基于STM32步进电机红外代码循迹小车主
- STM32F103RBT6+DM9000CEP+UIP Telnet功能实现工
- STM32F103VCT6+W5500 telnet功能实现
- 真正的标准C写的ECC加密算法
- YL-26 STM32最小系统使用说明
- stm32 超声波避障小车1
- STM32F4x GT911配置表
- USB调试助手(单片机多功能调试助手
- STM32驱动CH452
评论
共有 条评论