stm32f103测量pm2.5源码


PM2.5检测模块资料及源码,以夏普pm2.5模块为例,包含模块手册及正点原子精英stm32f1示例程序
资源截图
代码片段和文件信息
/**************************************************************************//**
 * @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  2019-04-22 18:03  PM2.5
     目录           0  2019-04-22 18:03  PM2.5CORE
     文件       17273  2010-06-07 10:25  PM2.5COREcore_cm3.c
     文件       85714  2011-02-09 14:59  PM2.5COREcore_cm3.h
     文件       15503  2011-03-10 10:52  PM2.5COREstartup_stm32f10x_hd.s
     目录           0  2019-04-22 18:03  PM2.5HARDWARE
     目录           0  2019-04-22 22:06  PM2.5HARDWAREADC
     文件        2789  2019-04-22 22:06  PM2.5HARDWAREADCadc.c
     文件         532  2012-09-16 10:12  PM2.5HARDWAREADCadc.h
     目录           0  2019-04-22 18:03  PM2.5HARDWAREDHT11
     文件        4612  2019-04-08 21:32  PM2.5HARDWAREDHT11dht11.c
     文件        1587  2019-04-08 21:38  PM2.5HARDWAREDHT11dht11.h
     目录           0  2019-04-22 21:56  PM2.5HARDWARELED
     文件        1071  2019-04-22 21:56  PM2.5HARDWARELEDled.c
     文件         142  2019-04-22 21:56  PM2.5HARDWARELEDled.h
     目录           0  2019-04-22 18:03  PM2.5HARDWAREOLED
     文件       14602  2018-04-28 15:00  PM2.5HARDWAREOLEDmp.h
     文件        8937  2019-04-15 10:50  PM2.5HARDWAREOLEDoled.c
     文件        2844  2019-04-15 10:08  PM2.5HARDWAREOLEDoled.h
     文件       13994  2014-05-03 15:48  PM2.5HARDWAREOLEDoledfont.h
     目录           0  2019-04-22 18:03  PM2.5HARDWARETIMER
     文件        7084  2019-04-08 20:38  PM2.5HARDWARETIMER imer.c
     文件         211  2018-05-16 17:39  PM2.5HARDWARETIMER imer.h
     目录           0  2019-04-22 22:19  PM2.5OBJ
     文件      532104  2019-04-22 22:17  PM2.5OBJTemplate.axf
     文件        1252  2019-04-22 22:19  PM2.5OBJTemplate.build_log.htm
     文件       32697  2019-04-22 22:17  PM2.5OBJTemplate.hex
     文件       71449  2019-04-22 22:17  PM2.5OBJTemplate.htm
     文件         760  2019-04-22 22:17  PM2.5OBJTemplate.lnp
     文件       41099  2019-04-22 22:19  PM2.5OBJTemplate_Template.dep
     文件      350367  2019-04-22 22:17  PM2.5OBJadc.crf
............此处省略193个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)