资源简介
文件为HDC1080温湿度传感器的C语言STM32驱动程序,已经调试成功!!!I2C接口,可以正常配置寄存器,读取温度值,内含非常详细的注释。
代码片段和文件信息
/**************************************************************************//**
* @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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 82697 2016-12-08 09:08 1080.jpg
目录 0 2019-11-24 13:47 HDC1080-TEST\
目录 0 2019-11-24 13:47 HDC1080-TEST\CORE\
文件 17273 2010-06-07 10:25 HDC1080-TEST\CORE\core_cm3.c
文件 85714 2011-02-09 14:59 HDC1080-TEST\CORE\core_cm3.h
文件 15503 2011-03-10 10:52 HDC1080-TEST\CORE\startup_stm32f10x_hd.s
文件 12765 2011-03-10 10:52 HDC1080-TEST\CORE\startup_stm32f10x_md.s
目录 0 2019-11-24 13:47 HDC1080-TEST\HARDWARE\
目录 0 2019-11-24 13:47 HDC1080-TEST\HARDWARE\HDC1080\
文件 5200 2019-09-21 22:58 HDC1080-TEST\HARDWARE\HDC1080\hdc1080.c
文件 1204 2019-09-08 12:44 HDC1080-TEST\HARDWARE\HDC1080\hdc1080.h
目录 0 2019-11-24 13:47 HDC1080-TEST\HARDWARE\IIC\
文件 2963 2019-11-10 17:40 HDC1080-TEST\HARDWARE\IIC\myiic.c
文件 1325 2019-11-10 17:40 HDC1080-TEST\HARDWARE\IIC\myiic.h
目录 0 2019-11-24 13:47 HDC1080-TEST\HARDWARE\KEY\
文件 1977 2014-03-20 20:32 HDC1080-TEST\HARDWARE\KEY\key.c
文件 1013 2014-03-20 20:30 HDC1080-TEST\HARDWARE\KEY\key.h
目录 0 2019-11-24 13:47 HDC1080-TEST\HARDWARE\LCD\
文件 35016 2014-01-02 17:22 HDC1080-TEST\HARDWARE\LCD\FONT.H
文件 85631 2015-08-12 18:19 HDC1080-TEST\HARDWARE\LCD\lcd.c
文件 8193 2015-08-12 18:19 HDC1080-TEST\HARDWARE\LCD\lcd.h
目录 0 2019-11-24 13:47 HDC1080-TEST\HARDWARE\LED\
文件 1301 2014-03-20 20:13 HDC1080-TEST\HARDWARE\LED\led.c
文件 640 2014-03-20 19:03 HDC1080-TEST\HARDWARE\LED\led.h
文件 399 2011-04-23 10:24 HDC1080-TEST\keilkilll.bat
目录 0 2019-11-24 13:47 HDC1080-TEST\OBJ\
文件 19745 2019-11-24 12:54 HDC1080-TEST\OBJ\IIC.hex
目录 0 2019-11-24 13:47 HDC1080-TEST\STM32F10x_FWLib\
目录 0 2019-11-24 13:47 HDC1080-TEST\STM32F10x_FWLib\inc\
文件 8982 2011-03-10 10:47 HDC1080-TEST\STM32F10x_FWLib\inc\misc.h
文件 21690 2011-03-10 10:47 HDC1080-TEST\STM32F10x_FWLib\inc\stm32f10x_adc.h
............此处省略75个文件信息
相关资源
- 语音识别STM_C语言代码
- STC15单片机ESP8266开发试验程序含原理
- 步进电机控制程序175063
- STM32F030无刷电机驱动程序
- STM32 RTC+LCD12864 实时时钟和闹钟实验
- STM32仿造FX3U-14MT-2AD2DA1CAN.rar
- libusb bulk传输 STM32上位机程序
- STM32 USB BULK
- STM32驱动NRF24L01的视频传输
- 嵌入式实时操作系统μC/OS-III(英文
- ALIENTEK 战舰STM32开发板最新例程
- 基于STM32的LED显示控制板卡驱动及GU
- stm32 上下位机通信
- STemWin无操作系统移植-(STM32)
- 零死角玩转STM32—F103MINI(图文高清版
- STM32工程模板
- stm32实现MODBUS-MODBUS做主站
- STM32 DMX512协议与485 W5500 户外钢琴地灯
- STM32F10x中文参考手册
- uip 通信(stm32) 源代码
- STM32 采集 HLW8032 DMA 串口1+串口3
- STM32F103系列IO操作-LED流水灯
- STM32 modbus协议 从机程序
- ADS1118_SPI模式_STM32
- STM32上驱动基于IIC协议的OLED 128664 0.
- stm32f0308_freertos通用模板
- 靶机控制:STM32遥控器531
- 蓝牙app控制STM32单片机的LED灯
- STM32F407_SD卡测试
- STM32F103系列CRC操作
评论
共有 条评论