资源简介

这个程序是基于STM32HAL库写的一个温湿度传感器SI7021程序,以测试成功

资源截图

代码片段和文件信息

//#include “stm32f10x.h“
#include “delay.h“
void Delay_ms(u16 i)
{
u32 temp_val;
SysTick->LOAD=i*9000;
SysTick->CTRL=0x01;
SysTick->VAL=0x00;
do
{
temp_val=SysTick->CTRL;
}while ((temp_val&0x01)&&(!(temp_val&(1<<16))));
SysTick->CTRL=0x00;
SysTick->VAL=0x00;


}

void Delay_us(u16 i)
{
u32 temp_val;
SysTick->LOAD=i;
SysTick->CTRL=0x01;
SysTick->VAL=0x00;
do
{
temp_val=SysTick->CTRL;
}while ((temp_val&0x01)&&(!(temp_val&(1<<16))));
SysTick->CTRL=0x00;
SysTick->VAL=0x00;


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3816  2018-08-10 15:35  si7021温湿度传感器\.mxproject

     文件        535  2018-08-10 14:23  si7021温湿度传感器\DELAY\delay.c

     文件        238  2018-08-10 14:32  si7021温湿度传感器\DELAY\delay.h

     文件     499383  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f100xb.h

     文件     544592  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f100xe.h

     文件     450054  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f101x6.h

     文件     460427  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f101xb.h

     文件     538241  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f101xe.h

     文件     553283  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f101xg.h

     文件     542782  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f102x6.h

     文件     552388  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f102xb.h

     文件     874443  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103x6.h

     文件     884820  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xb.h

     文件     971857  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xe.h

     文件     985951  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xg.h

     文件    1261488  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f105xc.h

     文件    1342323  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f107xc.h

     文件       8788  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f1xx.h

     文件       3337  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Include\system_stm32f1xx.h

     文件      15127  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f100xb.s

     文件      16715  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f100xe.s

     文件      12564  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f101x6.s

     文件      12937  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f101xb.s

     文件      15049  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f101xe.s

     文件      15808  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f101xg.s

     文件      12886  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f102x6.s

     文件      13271  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f102xb.s

     文件      13449  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f103x6.s

     文件      13834  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f103xb.s

     文件      16391  2018-06-21 17:36  si7021温湿度传感器\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f103xe.s

............此处省略622个文件信息

评论

共有 条评论