资源简介
STM32F103读取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 current value of the MSP (main stack pointer)
* Cortex processor register
*/
__ASM uin
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 833 2020-01-09 16:45 temp\Doc\readme.txt
文件 374 2019-03-29 16:33 temp\keilkill.bat
文件 16489 2019-03-29 16:33 temp\Libraries\CMSIS\core_cm3.c
文件 83896 2019-03-29 16:33 temp\Libraries\CMSIS\core_cm3.h
文件 15398 2019-03-29 16:33 temp\Libraries\CMSIS\startup\startup_stm32f10x_cl.s
文件 15145 2019-03-29 16:33 temp\Libraries\CMSIS\startup\startup_stm32f10x_hd.s
文件 15346 2019-03-29 16:33 temp\Libraries\CMSIS\startup\startup_stm32f10x_hd_vl.s
文件 12079 2019-03-29 16:33 temp\Libraries\CMSIS\startup\startup_stm32f10x_ld.s
文件 13352 2019-03-29 16:33 temp\Libraries\CMSIS\startup\startup_stm32f10x_ld_vl.s
文件 12458 2019-03-29 16:33 temp\Libraries\CMSIS\startup\startup_stm32f10x_md.s
文件 13758 2019-03-29 16:33 temp\Libraries\CMSIS\startup\startup_stm32f10x_md_vl.s
文件 15597 2019-03-29 16:33 temp\Libraries\CMSIS\startup\startup_stm32f10x_xl.s
文件 625605 2019-03-29 16:33 temp\Libraries\CMSIS\stm32f10x.h
文件 35463 2019-03-29 16:33 temp\Libraries\CMSIS\system_stm32f10x.c
文件 1987 2019-03-29 16:33 temp\Libraries\CMSIS\system_stm32f10x.h
文件 8762 2019-03-29 16:33 temp\Libraries\FWlib\inc\misc.h
文件 21207 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_adc.h
文件 7360 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_bkp.h
文件 26862 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_can.h
文件 6363 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_cec.h
文件 2068 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_crc.h
文件 14916 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_dac.h
文件 3699 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_dbgmcu.h
文件 20315 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_dma.h
文件 6640 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_exti.h
文件 25019 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_flash.h
文件 26283 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_fsmc.h
文件 19790 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_gpio.h
文件 29345 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_i2c.h
文件 3688 2019-03-29 16:33 temp\Libraries\FWlib\inc\stm32f10x_iwdg.h
............此处省略179个文件信息
相关资源
- ds18b20温度传感器编程指令功能
- 温度传感器DS18B20序列号批量搜索算法
- FreeRTOS采样ADC+KEY事件信号+DMA串口收发
- stm32f103c8t6_sch.Lib
- STM32F103RC+ADC+DMA多通道采样LCD显示
- I2C读写AT24C02 基于STM32F103 cube116540
- 基于stm32f103ve的程序——跑马灯实验
- STM32f103超声波模块例程
- stm32f103c8t6 4 oled.rar
- 单片机与温度传感器DS18B20的程序设计
- 毕业论文之温度传感器DS18B20(源码
- STM32F103 串口程序(完整版)
- stm32 ds18b20 温度传感器 测试通过
- STM32F103定时器中断程序
- [免费]基于stm32f103ze 的OLED驱动代码
- 51单片机读取温度数据存储到SD卡中并
- STM32F103RBT6驱动UC1698控制芯片的160160黑
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- DS18B20分布式多点测温的Proteus仿真
- STM32F103 CC2500完整驱动(模拟SPI)
- 单片机 DS18B20 温度控制系统
- 课程设计蔬菜大棚自动控制系统,包
- SX1280.rar
- STM32F103C8T6+NRF24l01无线通信
- stm32f103.SchDoc
- STM32F103 USART+DMA
- 基于STM32F103C8单片机的晶联讯电子JL
- STM32F103实现OV7670摄像头显示
- STM32F103VCT6TR - High-density performance lin
- stm32f103 虚拟U盘,调试成功的
评论
共有 条评论