资源简介
以STM32F103RCT6作为硬件平台,搭建PM2.5传感器(GP2Y1014AU)采集模块、烟雾传感器(MQ-2)采集模块、温度(DS18B20)传感器采集模块和湿度(DHT11)传感器采集模块,TFTLCD显示模块,搭建wifi(ESP8266)模块。
代码片段和文件信息
/**************************************************************************//**
* @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
- 上一篇:使用FPGA控制DDR实现步骤与注意细节
- 下一篇:sip协议(中文版)
相关资源
- 将STM32内部Flash虚拟成U盘通过复制bi
- STM32采集风向
- STM32采集风速调试成功
- STM32F103ZET6--MPU6050DMP
- STM32F103输入捕获
- STM32 OLED多级菜单显示
- 多摩川编码器读取程序,STM32
- STM32的温湿度采集报警系统,DHT11,
- STM32 USB通信上、下位机
- 基于STM32的光照传感器
- STM32F4xx_Clock_Configuration_V1.1.0
- STM32使用MCP3204串行AD
- 用STM32测3个DS18B20用12864显示
- 基于STM32的WS2812全彩led屏幕
- RAW_UDP实验
- STM320.96寸OLED显示屏IIC
- STM320.96寸OLED显示屏
- 基于STM32的MQ-3酒精浓度检测源码
- STM32UART串口程序
- STM32红外遥控
- STM32 擦玻璃程序
- STM32HC-SR04程序
- STM32BMP180程序
- STM32四路PWM
- STM32点3.2寸TFT屏
- stm32f1 测量频率 脉冲参量测试仪 只能
- STM32+MQTT协议功能实现测试demo
- STM32F103VE_Sonic HC-SR04超声波模块程序
- stm32F429-discovery USART1 的测试程序
- Stm32F427飞控原理图
评论
共有 条评论