Browse Source

完成全部功能

master
htujun 3 years ago
parent
commit
6a7541368d
  1. 70
      stm32/HARDWARE/DCmotor/motor.c
  2. 26
      stm32/HARDWARE/DCmotor/motor.h
  3. 107
      stm32/HARDWARE/DS18B20/ds18b20.c
  4. 59
      stm32/HARDWARE/DS18B20/ds18b20.h
  5. 58
      stm32/HARDWARE/LED/led.c
  6. 27
      stm32/HARDWARE/LED/led.h
  7. BIN
      stm32/OBJ/Template.axf
  8. 29
      stm32/OBJ/Template.build_log.htm
  9. 1763
      stm32/OBJ/Template.hex
  10. 1379
      stm32/OBJ/Template.htm
  11. 1
      stm32/OBJ/Template.lnp
  12. 87
      stm32/OBJ/Template_Target 1.dep
  13. BIN
      stm32/OBJ/adc.o
  14. BIN
      stm32/OBJ/core_cm3.o
  15. BIN
      stm32/OBJ/delay.o
  16. BIN
      stm32/OBJ/dht11.o
  17. BIN
      stm32/OBJ/ds18b20.crf
  18. BIN
      stm32/OBJ/ds18b20.o
  19. BIN
      stm32/OBJ/lcd1602.o
  20. BIN
      stm32/OBJ/led.crf
  21. BIN
      stm32/OBJ/led.o
  22. BIN
      stm32/OBJ/main.crf
  23. 1
      stm32/OBJ/main.d
  24. BIN
      stm32/OBJ/main.o
  25. BIN
      stm32/OBJ/misc.o
  26. BIN
      stm32/OBJ/motor.crf
  27. BIN
      stm32/OBJ/motor.o
  28. BIN
      stm32/OBJ/stm32f10x_adc.o
  29. BIN
      stm32/OBJ/stm32f10x_gpio.o
  30. BIN
      stm32/OBJ/stm32f10x_it.o
  31. BIN
      stm32/OBJ/stm32f10x_rcc.o
  32. BIN
      stm32/OBJ/stm32f10x_tim.o
  33. BIN
      stm32/OBJ/stm32f10x_usart.o
  34. BIN
      stm32/OBJ/sys.o
  35. BIN
      stm32/OBJ/system_stm32f10x.o
  36. BIN
      stm32/OBJ/timer.crf
  37. BIN
      stm32/OBJ/timer.o
  38. BIN
      stm32/OBJ/usart.o
  39. BIN
      stm32/OBJ/wifi.o
  40. 1311
      stm32/USER/Template.map
  41. 333
      stm32/USER/Template.uvguix.QY
  42. 40
      stm32/USER/Template.uvoptx
  43. 7
      stm32/USER/Template.uvprojx
  44. 271
      stm32/USER/main.c
  45. 111
      wifi/WiFiTelnetToSerial/WiFiTelnetToSerial.ino

70
stm32/HARDWARE/DCmotor/motor.c

@ -1,3 +1,4 @@
#include "motor.h" #include "motor.h"
#include "timer.h" #include "timer.h"
#include "delay.h" #include "delay.h"
@ -5,73 +6,18 @@
u16 Ypwmva=0; u16 Ypwmva=0;
u16 Zpwmva=0; u16 Zpwmva=0;
void motor_Init(void) void motor_Init(void)
{ {
GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC|RCC_APB2Periph_GPIOB|RCC_APB2Periph_GPIOA, ENABLE); RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_5|GPIO_Pin_0; //PB5、PB0 端口配置
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //IO口速度为50MHz
GPIO_Init(GPIOB, &GPIO_InitStructure); //根据设定参数初始化
GPIO_SetBits(GPIOB,GPIO_Pin_5|GPIO_Pin_0);
// GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10|GPIO_Pin_13|GPIO_Pin_14|GPIO_Pin_0;
// GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; //PA8,9,10,13,14,15设置成输入,默认下拉
// GPIO_Init(GPIOA, &GPIO_InitStructure);//初始化GPIOA
//
// GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10|GPIO_Pin_11;
// GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; //PC10,11设置成输入,默认下拉
// GPIO_Init(GPIOC, &GPIO_InitStructure);//初始化GPIOC
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13|GPIO_Pin_14; //PB5<EFBFBD><EFBFBD>PB0 <EFBFBD>˿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //IO<EFBFBD><EFBFBD><EFBFBD>ٶ<EFBFBD>Ϊ50MHz
GPIO_Init(GPIOC, &GPIO_InitStructure); //<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>
GPIO_SetBits(GPIOC,GPIO_Pin_13|GPIO_Pin_14);
} }
void PWM_init(void)
{
TIM_SetCompare2(TIM3,10);
TIM_SetCompare3(TIM3,10);
}
void run(void)//前进
{
Ypwmva=450;
Zpwmva=450;
Right_moto_go;
Left_moto_go;
}
void stop(void)//停止
{
Ypwmva=0;
Zpwmva=0;
Right_moto_go;
Left_moto_go;
}
void backrun(void)//后退
{
Ypwmva=450;
Zpwmva=450;
Left_moto_back;
Right_moto_back;
}
void leftrun(void)//左转
{
Ypwmva=500;
Zpwmva=500;
Right_moto_back;
Left_moto_go;
}
void rightrun(void)//右转
{
Ypwmva=500;
Zpwmva=500;
Right_moto_go;
Left_moto_back;
}

26
stm32/HARDWARE/DCmotor/motor.h

@ -3,30 +3,10 @@
#include "sys.h" #include "sys.h"
#define ENA PBout(0)//电机驱动 #define FAN PCout(14) // PC12
#define ENB PBout(5) #define CLEAN PCout(13) // PC13
#define IN1 PBout(12) void motor_Init(void);//<EFBFBD><EFBFBD><EFBFBD>IO<EFBFBD>ڳ<EFBFBD>ʼ<EFBFBD><EFBFBD>
#define IN2 PBout(13)
#define IN3 PBout(14)
#define IN4 PBout(15)
#define Right_moto_go {IN3=0,IN4=1;} //右电机向前走
#define Right_moto_back {IN3=1,IN4=0;} //右边电机向后转
#define Left_moto_Stop {ENA=0;} //左边电机停转
#define Left_moto_go {IN1=0,IN2=1;} //左边电机向前走
#define Left_moto_back {IN1=1,IN2=0;} //左边电机向后走
#define Right_moto_Stop {ENB=0;} //右边电机停转
void motor_Init(void);//电机IO口初始化
void PWM_init(void);//电机速度初始化
void run(void);//前进
void backrun(void);//后退
void leftrun(void);//左转
void rightrun(void);//右转
void stop(void);//停止
#endif #endif

107
stm32/HARDWARE/DS18B20/ds18b20.c

@ -1,36 +1,35 @@
#include "ds18b20.h" #include "ds18b20.h"
#include "delay.h" #include "delay.h"
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
//本程序只供学习使用,未经作者许可,不得用于其它任何用途 //本程序只供学习使用,未经作者许可,不得用于其它任何用途
//ALIENTEK精英STM32开发板 //ALIENTEK miniSTM32开发板
//DS18B20驱动代码 //DS18B20驱动代码
//正点原子@ALIENTEK //正点原子@ALIENTEK
//技术论坛:www.openedv.com //技术论坛:www.openedv.com
//修改日期:2012/9/12 //修改日期:2012/9/12
//版本:V1.0 //版本:V1.0
//版权所有,盗版必究。 //版权所有,盗版必究。
//Copyright(C) 广州市星翼电子科技有限公司 2009-2019 //Copyright(C) 广州市星翼电子科技有限公司 2009-2019
//All rights reserved //All rights reserved
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
//复位DS18B20
//复位DS18B20
void DS18B20_Rst(void) void DS18B20_Rst(void)
{ {
DS18B20_IO_OUT(); //SET PG11 OUTPUT DS18B20_IO_OUT(); //SET PA0 OUTPUT
DS18B20_DQ_OUT=0; //拉低DQ DS18B20_DQ_OUT=0; //拉低DQ
delay_us(750); //拉低750us delay_us(750); //拉低750us
DS18B20_DQ_OUT=1; //DQ=1 DS18B20_DQ_OUT=1; //DQ=1
delay_us(15); //15US delay_us(15); //15US
} }
//等待DS18B20的回应 //等待DS18B20的回应
//返回1:未检测到DS18B20的存在 //返回1:未检测到DS18B20的存在
//返回0:存在 //返回0:存在
u8 DS18B20_Check(void) u8 DS18B20_Check(void)
{ {
u8 retry=0; u8 retry=0;
DS18B20_IO_IN(); //SET PG11 INPUT DS18B20_IO_IN();//SET PA0 INPUT
while (DS18B20_DQ_IN&&retry<200) while (DS18B20_DQ_IN&&retry<200)
{ {
retry++; retry++;
@ -46,25 +45,25 @@ u8 DS18B20_Check(void)
if(retry>=240)return 1; if(retry>=240)return 1;
return 0; return 0;
} }
//从DS18B20读取一个位 //从DS18B20读取一个位
//返回值:1/0 //返回值:1/0
u8 DS18B20_Read_Bit(void) u8 DS18B20_Read_Bit(void) // read one bit
{ {
u8 data; u8 data;
DS18B20_IO_OUT(); //SET PG11 OUTPUT DS18B20_IO_OUT();//SET PA0 OUTPUT
DS18B20_DQ_OUT=0; DS18B20_DQ_OUT=0;
delay_us(2); delay_us(2);
DS18B20_DQ_OUT=1; DS18B20_DQ_OUT=1;
DS18B20_IO_IN(); //SET PG11 INPUT DS18B20_IO_IN();//SET PA0 INPUT
delay_us(12); delay_us(12);
if(DS18B20_DQ_IN)data=1; if(DS18B20_DQ_IN)data=1;
else data=0; else data=0;
delay_us(50); delay_us(50);
return data; return data;
} }
//从DS18B20读取一个字节 //从DS18B20读取一个字节
//返回值:读到的数据 //返回值:读到的数据
u8 DS18B20_Read_Byte(void) u8 DS18B20_Read_Byte(void) // read one byte
{ {
u8 i,j,dat; u8 i,j,dat;
dat=0; dat=0;
@ -75,65 +74,64 @@ u8 DS18B20_Read_Byte(void)
} }
return dat; return dat;
} }
//写一个字节到DS18B20 //写一个字节到DS18B20
//dat:要写入的字节 //dat:要写入的字节
void DS18B20_Write_Byte(u8 dat) void DS18B20_Write_Byte(u8 dat)
{ {
u8 j; u8 j;
u8 testb; u8 testb;
DS18B20_IO_OUT(); //SET PG11 OUTPUT; DS18B20_IO_OUT();//SET PA0 OUTPUT;
for (j=1;j<=8;j++) for (j=1;j<=8;j++)
{ {
testb=dat&0x01; testb=dat&0x01;
dat=dat>>1; dat=dat>>1;
if (testb) if (testb)
{ {
DS18B20_DQ_OUT=0; // Write 1 DS18B20_DQ_OUT=0;// Write 1
delay_us(2); delay_us(2);
DS18B20_DQ_OUT=1; DS18B20_DQ_OUT=1;
delay_us(60); delay_us(60);
} }
else else
{ {
DS18B20_DQ_OUT=0; // Write 0 DS18B20_DQ_OUT=0;// Write 0
delay_us(60); delay_us(60);
DS18B20_DQ_OUT=1; DS18B20_DQ_OUT=1;
delay_us(2); delay_us(2);
} }
} }
} }
//开始温度转换 //开始温度转换
void DS18B20_Start(void) void DS18B20_Start(void)// ds1820 start convert
{ {
DS18B20_Rst(); DS18B20_Rst();
DS18B20_Check(); DS18B20_Check();
DS18B20_Write_Byte(0xcc); // skip rom DS18B20_Write_Byte(0xcc);// skip rom
DS18B20_Write_Byte(0x44); // convert DS18B20_Write_Byte(0x44);// convert
} }
//初始化DS18B20的IO口 DQ 同时检测DS的存在
//初始化DS18B20的IO口 DQ 同时检测DS的存在 //返回1:不存在
//返回1:不存在 //返回0:存在
//返回0:存在
u8 DS18B20_Init(void) u8 DS18B20_Init(void)
{ {
GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); //使能PORTG口时钟 RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); //使能PORTA口时钟
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_11; //PORTG.11 推挽输出 GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0; //PORTA0 推挽输出
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init(GPIOA, &GPIO_InitStructure); GPIO_Init(GPIOA, &GPIO_InitStructure);
GPIO_SetBits(GPIOA,GPIO_Pin_11); //输出1 GPIO_SetBits(GPIOA,GPIO_Pin_0); //输出1
DS18B20_Rst(); DS18B20_Rst();
return DS18B20_Check(); return DS18B20_Check();
} }
//从ds18b20得到温度值 //从ds18b20得到温度值
//精度:0.1C //精度:0.1C
//返回值:温度值 (-550~1250) //返回值:温度值 (-550~1250)
short DS18B20_Get_Temp(void) short DS18B20_Get_Temp(void)
{ {
u8 temp; u8 temp;
@ -142,8 +140,8 @@ short DS18B20_Get_Temp(void)
DS18B20_Start (); // ds1820 start convert DS18B20_Start (); // ds1820 start convert
DS18B20_Rst(); DS18B20_Rst();
DS18B20_Check(); DS18B20_Check();
DS18B20_Write_Byte(0xcc); // skip rom DS18B20_Write_Byte(0xcc);// skip rom
DS18B20_Write_Byte(0xbe); // convert DS18B20_Write_Byte(0xbe);// convert
TL=DS18B20_Read_Byte(); // LSB TL=DS18B20_Read_Byte(); // LSB
TH=DS18B20_Read_Byte(); // MSB TH=DS18B20_Read_Byte(); // MSB
@ -151,16 +149,13 @@ short DS18B20_Get_Temp(void)
{ {
TH=~TH; TH=~TH;
TL=~TL; TL=~TL;
temp=0; //温度为负 temp=0;//温度为负
}else temp=1; //温度为正 }else temp=1;//温度为正
tem=TH; //获得高八位 tem=TH; //获得高八位
tem<<=8; tem<<=8;
tem+=TL; //获得底八位 tem+=TL;//获得底八位
tem=(float)tem*0.625; //转换 tem=(float)tem*0.625;//转换
if(temp)return tem; //返回温度值 if(temp)return tem; //返回温度值
else return -tem; else return -tem;
} }

59
stm32/HARDWARE/DS18B20/ds18b20.h

@ -1,37 +1,42 @@
/*
* @Author: your name
* @Date: 2022-04-10 12:08:03
* @LastEditTime: 2022-04-13 02:13:14
* @LastEditors: your name
* @Description: koroFileHeader查看配置 : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \20220410-IntelligentPiggery\stm32\HARDWARE\DS18B20\ds18b20.h
*/
#ifndef __DS18B20_H #ifndef __DS18B20_H
#define __DS18B20_H #define __DS18B20_H
#include "sys.h" #include "sys.h"
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
//本程序只供学习使用,未经作者许可,不得用于其它任何用途 //本程序只供学习使用,未经作者许可,不得用于其它任何用途
//ALIENTEK战舰STM32开发板 //ALIENTEK MiniSTM32开发板
//DS18B20驱动代码 //DS18B20驱动代码
//正点原子@ALIENTEK //正点原子@ALIENTEK
//技术论坛:www.openedv.com //技术论坛:www.openedv.com
//修改日期:2012/9/12 //修改日期:2014/3/12
//版本:V1.0 //版本:V1.0
//版权所有,盗版必究。 //版权所有,盗版必究。
//Copyright(C) 广州市星翼电子科技有限公司 2009-2019 //Copyright(C) 广州市星翼电子科技有限公司 2009-2019
//All rights reserved //All rights reserved
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
//IO方向设置 //IO方向设置
#define DS18B20_IO_IN() {GPIOA->CRH&=0XFFFF0FFF;GPIOA->CRH|=8<<12;} #define DS18B20_IO_IN() {GPIOA->CRL&=0XFFFFFFF0;GPIOA->CRL|=8<<0;}
#define DS18B20_IO_OUT() {GPIOA->CRH&=0XFFFF0FFF;GPIOA->CRH|=3<<12;} #define DS18B20_IO_OUT() {GPIOA->CRL&=0XFFFFFFF0;GPIOA->CRL|=3<<0;}
////IO操作函数
////IO操作函数 #define DS18B20_DQ_OUT PAout(0) //数据端口 PA0
#define DS18B20_DQ_OUT PAout(11) //数据端口 PA0 #define DS18B20_DQ_IN PAin(0) //数据端口 PA0
#define DS18B20_DQ_IN PAin(11) //数据端口 PA0
u8 DS18B20_Init(void); //初始化DS18B20
u8 DS18B20_Init(void);//初始化DS18B20 short DS18B20_Get_Temp(void); //获取温度
short DS18B20_Get_Temp(void);//获取温度 void DS18B20_Start(void); //开始温度转换
void DS18B20_Start(void);//开始温度转换 void DS18B20_Write_Byte(u8 dat);//写入一个字节
void DS18B20_Write_Byte(u8 dat);//写入一个字节 u8 DS18B20_Read_Byte(void); //读出一个字节
u8 DS18B20_Read_Byte(void);//读出一个字节 u8 DS18B20_Read_Bit(void); //读出一个位
u8 DS18B20_Read_Bit(void);//读出一个位 u8 DS18B20_Check(void); //检测是否存在DS18B20
u8 DS18B20_Check(void);//检测是否存在DS18B20 void DS18B20_Rst(void); //复位DS18B20
void DS18B20_Rst(void);//复位DS18B20
#endif #endif

58
stm32/HARDWARE/LED/led.c

@ -1,52 +1,30 @@
/*
* @Author: your name
* @Date: 2022-04-10 10:08:56
* @LastEditTime: 2022-04-13 03:15:55
* @LastEditors: Please set LastEditors
* @Description: koroFileHeader查看配置 : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \20220410-IntelligentPiggery\stm32\HARDWARE\LED\led.c
*/
#include "led.h" #include "led.h"
void Motor_Init(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_AFIO|RCC_APB2Periph_GPIOB, ENABLE); //使能PA,PD端口时钟
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_15; //LED0-->PA.8 端口配置
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //IO口速度为50MHz
GPIO_Init(GPIOA, &GPIO_InitStructure); //根据设定参数初始化GPIOA.8
GPIO_SetBits(GPIOA,GPIO_Pin_12 | GPIO_Pin_15); //PA.8 输出高
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8 | GPIO_Pin_9; //LED0-->PA.8 端口配置
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //IO口速度为50MHz
GPIO_Init(GPIOB, &GPIO_InitStructure); //根据设定参数初始化GPIOA.8
GPIO_SetBits(GPIOB,GPIO_Pin_8 | GPIO_Pin_9); //PA.8 输出高
}
void Relay_Beep_Init(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); //使能PA,PD端口时钟
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13; //LED0-->PA.8 端口配置
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //IO口速度为50MHz
GPIO_Init(GPIOB, &GPIO_InitStructure); //根据设定参数初始化GPIOA.8
GPIO_SetBits(GPIOB,GPIO_Pin_12 | GPIO_Pin_13); //PA.8 输出高
}
//初始化PB5和PE5为输出口.并使能这两个口的时钟 //<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>PB5<EFBFBD><EFBFBD>PE5Ϊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>ʱ<EFBFBD><EFBFBD>
//LED IO初始化 //LED IO<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>
void LED_Init(void) void LED_Init(void)
{ {
GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); //使能PA,PD端口时钟 RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOA, ENABLE); //ʹ<EFBFBD><EFBFBD>PA,PD<EFBFBD>˿<EFBFBD>ʱ<EFBFBD><EFBFBD>
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_5 | GPIO_Pin_6 | GPIO_Pin_7; //LED0-->PA.8 端口配置 GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14; //LED0-->PA.8 <EFBFBD>˿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出 GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //IO口速度为50MHz GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //IO<EFBFBD><EFBFBD><EFBFBD>ٶ<EFBFBD>Ϊ50MHz
GPIO_Init(GPIOB, &GPIO_InitStructure); //根据设定参数初始化GPIOA.8 GPIO_Init(GPIOB, &GPIO_InitStructure); //<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>GPIOA.8
GPIO_SetBits(GPIOB,GPIO_Pin_5 | GPIO_Pin_6 | GPIO_Pin_7); //PA.8 输出高
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_15;
GPIO_Init(GPIOA, &GPIO_InitStructure);
GPIO_SetBits(GPIOB,GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 ); //PA.8 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
} }

27
stm32/HARDWARE/LED/led.h

@ -1,20 +1,27 @@
/*
* @Author: your name
* @Date: 2022-04-10 10:08:56
* @LastEditTime: 2022-04-13 03:15:41
* @LastEditors: Please set LastEditors
* @Description: koroFileHeader查看配置 : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
* @FilePath: \20220410-IntelligentPiggery\stm32\HARDWARE\LED\led.h
*/
#ifndef __LED_H #ifndef __LED_H
#define __LED_H #define __LED_H
#include "sys.h" #include "sys.h"
#define LED_RED PBout(5) // PB5 // 空调
#define LED_GREEN PBout(6) // PB6 #define LED_CONDITIONER PBout(12) // PB5
#define LED_YELLOW PBout(7) // PB7
#define motor1 PBout(8) // PA10 // 水帘
#define motor2 PBout(9) // PA11 #define LED_NAPPE PBout(13) // PB6
#define motor3 PAout(12) // PA12
#define motor4 PAout(15) // PA15
#define Relay PBout(13) // PB13 // 水枪
#define Beep PBout(12) // PB12 #define LED_WATER_GUN PBout(14) // PB7
void LED_Init(void);//³õʼ»¯ #define BEEP PAout(15)
void LED_Init(void);//<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>
void Relay_Beep_Init(void); void Relay_Beep_Init(void);
void Motor_Init(void); void Motor_Init(void);

BIN
stm32/OBJ/Template.axf

Binary file not shown.

29
stm32/OBJ/Template.build_log.htm

@ -22,12 +22,35 @@ Dialog DLL: TCM.DLL V1.35.1.0
<h2>Project:</h2> <h2>Project:</h2>
E:\ÏîÄ¿\¼æÖ°ÏîÄ¿\20220410-IntelligentPiggery\stm32\USER\Template.uvprojx E:\ÏîÄ¿\¼æÖ°ÏîÄ¿\20220410-IntelligentPiggery\stm32\USER\Template.uvprojx
Project File Date: 04/10/2022 Project File Date: 04/12/2022
<h2>Output:</h2> <h2>Output:</h2>
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin' *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target 1' Build target 'Target 1'
"..\OBJ\Template.axf" - 0 Error(s), 0 Warning(s). compiling main.c...
..\HARDWARE\DS1302\DS1302.h(86): warning: #1-D: last line of file ends without a newline
#endif
main.c(46): warning: #1295-D: Deprecated declaration SendUserInfo - give arg types
void SendUserInfo();
main.c(47): warning: #1295-D: Deprecated declaration SendTime - give arg types
void SendTime();
main.c(52): warning: #187-D: use of "=" where "==" may have been intended
if(flag = 0){
main.c(51): warning: #550-D: variable "flag" was set but never used
static int flag = 0, time_min = 0;
main.c(152): warning: #42-D: operand types are incompatible ("char *" and "u8 *")
target1 = strstr((const char*)USART_RX_BUF, "(") - USART_RX_BUF;
main.c(152): warning: #993-D: subtraction of pointer types "char *" and "u8 *" is nonstandard
target1 = strstr((const char*)USART_RX_BUF, "(") - USART_RX_BUF;
main.c(153): warning: #42-D: operand types are incompatible ("char *" and "u8 *")
target2 = strstr((const char*)USART_RX_BUF, ")") - USART_RX_BUF;
main.c(153): warning: #993-D: subtraction of pointer types "char *" and "u8 *" is nonstandard
target2 = strstr((const char*)USART_RX_BUF, ")") - USART_RX_BUF;
main.c: 9 warnings, 0 errors
linking...
Program Size: Code=16028 RO-data=344 RW-data=96 ZI-data=1384
FromELF: creating hex file...
"..\OBJ\Template.axf" - 0 Error(s), 9 Warning(s).
<h2>Software Packages used:</h2> <h2>Software Packages used:</h2>
@ -41,7 +64,7 @@ Package Vendor: Keil
D:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include D:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include
<h2>Collection of Component Files used:</h2> <h2>Collection of Component Files used:</h2>
Build Time Elapsed: 00:00:00 Build Time Elapsed: 00:00:01
</pre> </pre>
</body> </body>
</html> </html>

1763
stm32/OBJ/Template.hex

File diff suppressed because it is too large Load Diff

1379
stm32/OBJ/Template.htm

File diff suppressed because it is too large Load Diff

1
stm32/OBJ/Template.lnp

@ -10,6 +10,7 @@
"..\obj\timer.o" "..\obj\timer.o"
"..\obj\ds18b20.o" "..\obj\ds18b20.o"
"..\obj\motor.o" "..\obj\motor.o"
"..\obj\ds1302.o"
"..\obj\delay.o" "..\obj\delay.o"
"..\obj\sys.o" "..\obj\sys.o"
"..\obj\usart.o" "..\obj\usart.o"

87
stm32/OBJ/Template_Target 1.dep

@ -1,6 +1,6 @@
Dependencies for Project 'Template', Target 'Target 1': (DO NOT MODIFY !) Dependencies for Project 'Template', Target 'Target 1': (DO NOT MODIFY !)
F (.\main.c)(0x6252BBD5)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\main.o --omf_browse ..\obj\main.crf --depend ..\obj\main.d) F (.\main.c)(0x6255D4E1)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\main.o --omf_browse ..\obj\main.crf --depend ..\obj\main.d)
I (..\HARDWARE\LED\led.h)(0x625257C8) I (..\HARDWARE\LED\led.h)(0x6255CFDF)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -39,10 +39,11 @@ I (..\HARDWARE\LCD1602\lcd1602.h)(0x5D0BE688)
I (..\HARDWARE\ADC\adc.h)(0x5CA64F5A) I (..\HARDWARE\ADC\adc.h)(0x5CA64F5A)
I (..\HARDWARE\TIMER\timer.h)(0x532BBAA7) I (..\HARDWARE\TIMER\timer.h)(0x532BBAA7)
I (D:\Keil_v5\ARM\ARMCC\include\string.h)(0x599ECD2C) I (D:\Keil_v5\ARM\ARMCC\include\string.h)(0x599ECD2C)
I (..\HARDWARE\DS18B20\ds18b20.h)(0x62525AF7) I (..\HARDWARE\DS18B20\ds18b20.h)(0x6255C13A)
I (D:\Keil_v5\ARM\ARMCC\include\stdlib.h)(0x599ECD2C) I (D:\Keil_v5\ARM\ARMCC\include\stdlib.h)(0x599ECD2C)
I (..\HARDWARE\DCmotor\motor.h)(0x6252BA3F) I (..\HARDWARE\DCmotor\motor.h)(0x6255BC50)
F (.\stm32f10x_it.c)(0x4EBEACB0)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_it.o --omf_browse ..\obj\stm32f10x_it.crf --depend ..\obj\stm32f10x_it.d) I (..\HARDWARE\DS1302\DS1302.h)(0x6255ACBC)
F (.\stm32f10x_it.c)(0x4EBEACB0)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_it.o --omf_browse ..\obj\stm32f10x_it.crf --depend ..\obj\stm32f10x_it.d)
I (stm32f10x_it.h)(0x4D99A426) I (stm32f10x_it.h)(0x4D99A426)
I (stm32f10x.h)(0x5E83791A) I (stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -73,7 +74,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (.\system_stm32f10x.c)(0x5E83791A)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\system_stm32f10x.o --omf_browse ..\obj\system_stm32f10x.crf --depend ..\obj\system_stm32f10x.d) F (.\system_stm32f10x.c)(0x5E83791A)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\system_stm32f10x.o --omf_browse ..\obj\system_stm32f10x.crf --depend ..\obj\system_stm32f10x.d)
I (stm32f10x.h)(0x5E83791A) I (stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x599ECD2E) I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x599ECD2E)
@ -103,8 +104,8 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\HARDWARE\LED\led.c)(0x62525D51)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\led.o --omf_browse ..\obj\led.crf --depend ..\obj\led.d) F (..\HARDWARE\LED\led.c)(0x6255D009)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\led.o --omf_browse ..\obj\led.crf --depend ..\obj\led.d)
I (..\HARDWARE\LED\led.h)(0x625257C8) I (..\HARDWARE\LED\led.h)(0x6255CFDF)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -134,7 +135,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\HARDWARE\ESP8266\wifi.c)(0x62528974)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\wifi.o --omf_browse ..\obj\wifi.crf --depend ..\obj\wifi.d) F (..\HARDWARE\ESP8266\wifi.c)(0x62528974)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\wifi.o --omf_browse ..\obj\wifi.crf --depend ..\obj\wifi.d)
I (..\HARDWARE\ESP8266\wifi.h)(0x5E5164A3) I (..\HARDWARE\ESP8266\wifi.h)(0x5E5164A3)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
@ -167,7 +168,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (D:\Keil_v5\ARM\ARMCC\include\string.h)(0x599ECD2C) I (D:\Keil_v5\ARM\ARMCC\include\string.h)(0x599ECD2C)
I (..\SYSTEM\delay\delay.h)(0x55CC2E59) I (..\SYSTEM\delay\delay.h)(0x55CC2E59)
F (..\HARDWARE\DHT11\dht11.c)(0x60786CD8)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\dht11.o --omf_browse ..\obj\dht11.crf --depend ..\obj\dht11.d) F (..\HARDWARE\DHT11\dht11.c)(0x60786CD8)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\dht11.o --omf_browse ..\obj\dht11.crf --depend ..\obj\dht11.d)
I (..\HARDWARE\DHT11\dht11.h)(0x62525B1C) I (..\HARDWARE\DHT11\dht11.h)(0x62525B1C)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
@ -199,7 +200,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\SYSTEM\delay\delay.h)(0x55CC2E59) I (..\SYSTEM\delay\delay.h)(0x55CC2E59)
F (..\HARDWARE\LCD1602\LCD1602.c)(0x5E549CB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\lcd1602.o --omf_browse ..\obj\lcd1602.crf --depend ..\obj\lcd1602.d) F (..\HARDWARE\LCD1602\LCD1602.c)(0x5E549CB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\lcd1602.o --omf_browse ..\obj\lcd1602.crf --depend ..\obj\lcd1602.d)
I (..\HARDWARE\LCD1602\lcd1602.h)(0x5D0BE688) I (..\HARDWARE\LCD1602\lcd1602.h)(0x5D0BE688)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -231,7 +232,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\SYSTEM\delay\delay.h)(0x55CC2E59) I (..\SYSTEM\delay\delay.h)(0x55CC2E59)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
F (..\HARDWARE\ADC\adc.c)(0x5CAF6A6E)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\adc.o --omf_browse ..\obj\adc.crf --depend ..\obj\adc.d) F (..\HARDWARE\ADC\adc.c)(0x5CAF6A6E)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\adc.o --omf_browse ..\obj\adc.crf --depend ..\obj\adc.d)
I (..\HARDWARE\ADC\adc.h)(0x5CA64F5A) I (..\HARDWARE\ADC\adc.h)(0x5CA64F5A)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
@ -263,7 +264,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\SYSTEM\delay\delay.h)(0x55CC2E59) I (..\SYSTEM\delay\delay.h)(0x55CC2E59)
F (..\HARDWARE\TIMER\timer.c)(0x5E565583)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\timer.o --omf_browse ..\obj\timer.crf --depend ..\obj\timer.d) F (..\HARDWARE\TIMER\timer.c)(0x5E565583)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\timer.o --omf_browse ..\obj\timer.crf --depend ..\obj\timer.d)
I (..\HARDWARE\TIMER\timer.h)(0x532BBAA7) I (..\HARDWARE\TIMER\timer.h)(0x532BBAA7)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
@ -294,10 +295,10 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\HARDWARE\LED\led.h)(0x625257C8) I (..\HARDWARE\LED\led.h)(0x6255CFDF)
I (..\HARDWARE\ESP8266\wifi.h)(0x5E5164A3) I (..\HARDWARE\ESP8266\wifi.h)(0x5E5164A3)
F (..\HARDWARE\DS18B20\ds18b20.c)(0x62525AE8)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\ds18b20.o --omf_browse ..\obj\ds18b20.crf --depend ..\obj\ds18b20.d) F (..\HARDWARE\DS18B20\ds18b20.c)(0x6255C148)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\ds18b20.o --omf_browse ..\obj\ds18b20.crf --depend ..\obj\ds18b20.d)
I (..\HARDWARE\DS18B20\ds18b20.h)(0x62525AF7) I (..\HARDWARE\DS18B20\ds18b20.h)(0x6255C13A)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -328,8 +329,8 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\SYSTEM\delay\delay.h)(0x55CC2E59) I (..\SYSTEM\delay\delay.h)(0x55CC2E59)
F (..\HARDWARE\DCmotor\motor.c)(0x6252BC29)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\motor.o --omf_browse ..\obj\motor.crf --depend ..\obj\motor.d) F (..\HARDWARE\DCmotor\motor.c)(0x6255BC45)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\motor.o --omf_browse ..\obj\motor.crf --depend ..\obj\motor.d)
I (..\HARDWARE\DCmotor\motor.h)(0x6252BA3F) I (..\HARDWARE\DCmotor\motor.h)(0x6255BC50)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -361,7 +362,37 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\HARDWARE\TIMER\timer.h)(0x532BBAA7) I (..\HARDWARE\TIMER\timer.h)(0x532BBAA7)
I (..\SYSTEM\delay\delay.h)(0x55CC2E59) I (..\SYSTEM\delay\delay.h)(0x55CC2E59)
F (..\SYSTEM\delay\delay.c)(0x55CC2E5D)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\delay.o --omf_browse ..\obj\delay.crf --depend ..\obj\delay.d) F (..\HARDWARE\DS1302\DS1302.c)(0x6243AEEF)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\ds1302.o --omf_browse ..\obj\ds1302.crf --depend ..\obj\ds1302.d)
I (..\HARDWARE\DS1302\DS1302.h)(0x6255ACBC)
I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x599ECD2E)
I (..\USER\system_stm32f10x.h)(0x4D783CAA)
I (..\USER\stm32f10x_conf.h)(0x55B0C93D)
I (..\STM32F10x_FWLib\inc\stm32f10x_adc.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_bkp.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_can.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_cec.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_crc.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_dac.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_dbgmcu.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_dma.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_exti.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_flash.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_fsmc.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_gpio.h)(0x50515FBA)
I (..\STM32F10x_FWLib\inc\stm32f10x_i2c.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_iwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_pwr.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_rcc.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_rtc.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_sdio.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_spi.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\SYSTEM\delay\delay.c)(0x55CC2E5D)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\delay.o --omf_browse ..\obj\delay.crf --depend ..\obj\delay.d)
I (..\SYSTEM\delay\delay.h)(0x55CC2E59) I (..\SYSTEM\delay\delay.h)(0x55CC2E59)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
@ -392,7 +423,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\SYSTEM\sys\sys.c)(0x55CC2E79)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\sys.o --omf_browse ..\obj\sys.crf --depend ..\obj\sys.d) F (..\SYSTEM\sys\sys.c)(0x55CC2E79)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\sys.o --omf_browse ..\obj\sys.crf --depend ..\obj\sys.d)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -422,7 +453,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\SYSTEM\usart\usart.c)(0x625289E4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\usart.o --omf_browse ..\obj\usart.crf --depend ..\obj\usart.d) F (..\SYSTEM\usart\usart.c)(0x625289E4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\usart.o --omf_browse ..\obj\usart.crf --depend ..\obj\usart.d)
I (..\SYSTEM\sys\sys.h)(0x550F951B) I (..\SYSTEM\sys\sys.h)(0x550F951B)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -454,10 +485,10 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\SYSTEM\usart\usart.h)(0x625289EE) I (..\SYSTEM\usart\usart.h)(0x625289EE)
I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x599ECD2C) I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x599ECD2C)
F (..\CORE\core_cm3.c)(0x4C0C587E)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\core_cm3.o --omf_browse ..\obj\core_cm3.crf --depend ..\obj\core_cm3.d) F (..\CORE\core_cm3.c)(0x4C0C587E)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\core_cm3.o --omf_browse ..\obj\core_cm3.crf --depend ..\obj\core_cm3.d)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x599ECD2E) I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x599ECD2E)
F (..\CORE\startup_stm32f10x_md.s)(0x4D783CD2)(--cpu Cortex-M3 -g --apcs=interwork --pd "__MICROLIB SETA 1" -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include --pd "__UVISION_VERSION SETA 525" --pd "STM32F10X_MD SETA 1" --list .\startup_stm32f10x_md.lst --xref -o ..\obj\startup_stm32f10x_md.o --depend ..\obj\startup_stm32f10x_md.d) F (..\CORE\startup_stm32f10x_md.s)(0x4D783CD2)(--cpu Cortex-M3 -g --apcs=interwork --pd "__MICROLIB SETA 1" -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include --pd "__UVISION_VERSION SETA 525" --pd "STM32F10X_MD SETA 1" --list .\startup_stm32f10x_md.lst --xref -o ..\obj\startup_stm32f10x_md.o --depend ..\obj\startup_stm32f10x_md.d)
F (..\STM32F10x_FWLib\src\stm32f10x_gpio.c)(0x4D79EEC6)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_gpio.o --omf_browse ..\obj\stm32f10x_gpio.crf --depend ..\obj\stm32f10x_gpio.d) F (..\STM32F10x_FWLib\src\stm32f10x_gpio.c)(0x4D79EEC6)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_gpio.o --omf_browse ..\obj\stm32f10x_gpio.crf --depend ..\obj\stm32f10x_gpio.d)
I (..\STM32F10x_FWLib\inc\stm32f10x_gpio.h)(0x50515FBA) I (..\STM32F10x_FWLib\inc\stm32f10x_gpio.h)(0x50515FBA)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -486,7 +517,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\STM32F10x_FWLib\src\stm32f10x_rcc.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_rcc.o --omf_browse ..\obj\stm32f10x_rcc.crf --depend ..\obj\stm32f10x_rcc.d) F (..\STM32F10x_FWLib\src\stm32f10x_rcc.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_rcc.o --omf_browse ..\obj\stm32f10x_rcc.crf --depend ..\obj\stm32f10x_rcc.d)
I (..\STM32F10x_FWLib\inc\stm32f10x_rcc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_rcc.h)(0x4D783BB4)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -515,7 +546,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\STM32F10x_FWLib\src\stm32f10x_usart.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_usart.o --omf_browse ..\obj\stm32f10x_usart.crf --depend ..\obj\stm32f10x_usart.d) F (..\STM32F10x_FWLib\src\stm32f10x_usart.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_usart.o --omf_browse ..\obj\stm32f10x_usart.crf --depend ..\obj\stm32f10x_usart.d)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -544,7 +575,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_spi.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\STM32F10x_FWLib\src\misc.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\misc.o --omf_browse ..\obj\misc.crf --depend ..\obj\misc.d) F (..\STM32F10x_FWLib\src\misc.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\misc.o --omf_browse ..\obj\misc.crf --depend ..\obj\misc.d)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -573,7 +604,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_spi.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
F (..\STM32F10x_FWLib\src\stm32f10x_adc.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_adc.o --omf_browse ..\obj\stm32f10x_adc.crf --depend ..\obj\stm32f10x_adc.d) F (..\STM32F10x_FWLib\src\stm32f10x_adc.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_adc.o --omf_browse ..\obj\stm32f10x_adc.crf --depend ..\obj\stm32f10x_adc.d)
I (..\STM32F10x_FWLib\inc\stm32f10x_adc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_adc.h)(0x4D783BB4)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)
@ -602,7 +633,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E) I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415E)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\STM32F10x_FWLib\src\stm32f10x_tim.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_tim.o --omf_browse ..\obj\stm32f10x_tim.crf --depend ..\obj\stm32f10x_tim.d) F (..\STM32F10x_FWLib\src\stm32f10x_tim.c)(0x4D783BB4)(-c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork -I ..\HARDWARE\LED -I ..\SYSTEM\delay -I ..\SYSTEM\sys -I ..\SYSTEM\usart -I ..\USER -I ..\STM32F10x_FWLib\inc -I ..\CORE -I ..\HARDWARE\ESP8266 -I ..\HARDWARE\DHT11 -I ..\HARDWARE\LCD1602 -I ..\HARDWARE\ADC -I ..\HARDWARE\TIMER -I ..\HARDWARE\DS18B20 -I ..\HARDWARE\cJSON -I ..\HARDWARE\DCmotor -I ..\HARDWARE\DS1302 -I.\RTE\_Target_1 -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="525" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\stm32f10x_tim.o --omf_browse ..\obj\stm32f10x_tim.crf --depend ..\obj\stm32f10x_tim.d)
I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4) I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x4D783BB4)
I (..\USER\stm32f10x.h)(0x5E83791A) I (..\USER\stm32f10x.h)(0x5E83791A)
I (..\CORE\core_cm3.h)(0x4D523B58) I (..\CORE\core_cm3.h)(0x4D523B58)

BIN
stm32/OBJ/adc.o

Binary file not shown.

BIN
stm32/OBJ/core_cm3.o

Binary file not shown.

BIN
stm32/OBJ/delay.o

Binary file not shown.

BIN
stm32/OBJ/dht11.o

Binary file not shown.

BIN
stm32/OBJ/ds18b20.crf

Binary file not shown.

BIN
stm32/OBJ/ds18b20.o

Binary file not shown.

BIN
stm32/OBJ/lcd1602.o

Binary file not shown.

BIN
stm32/OBJ/led.crf

Binary file not shown.

BIN
stm32/OBJ/led.o

Binary file not shown.

BIN
stm32/OBJ/main.crf

Binary file not shown.

1
stm32/OBJ/main.d

@ -42,3 +42,4 @@
..\obj\main.o: ..\HARDWARE\DS18B20\ds18b20.h ..\obj\main.o: ..\HARDWARE\DS18B20\ds18b20.h
..\obj\main.o: D:\Keil_v5\ARM\ARMCC\Bin\..\include\stdlib.h ..\obj\main.o: D:\Keil_v5\ARM\ARMCC\Bin\..\include\stdlib.h
..\obj\main.o: ..\HARDWARE\DCmotor\motor.h ..\obj\main.o: ..\HARDWARE\DCmotor\motor.h
..\obj\main.o: ..\HARDWARE\DS1302\DS1302.h

BIN
stm32/OBJ/main.o

Binary file not shown.

BIN
stm32/OBJ/misc.o

Binary file not shown.

BIN
stm32/OBJ/motor.crf

Binary file not shown.

BIN
stm32/OBJ/motor.o

Binary file not shown.

BIN
stm32/OBJ/stm32f10x_adc.o

Binary file not shown.

BIN
stm32/OBJ/stm32f10x_gpio.o

Binary file not shown.

BIN
stm32/OBJ/stm32f10x_it.o

Binary file not shown.

BIN
stm32/OBJ/stm32f10x_rcc.o

Binary file not shown.

BIN
stm32/OBJ/stm32f10x_tim.o

Binary file not shown.

BIN
stm32/OBJ/stm32f10x_usart.o

Binary file not shown.

BIN
stm32/OBJ/sys.o

Binary file not shown.

BIN
stm32/OBJ/system_stm32f10x.o

Binary file not shown.

BIN
stm32/OBJ/timer.crf

Binary file not shown.

BIN
stm32/OBJ/timer.o

Binary file not shown.

BIN
stm32/OBJ/usart.o

Binary file not shown.

BIN
stm32/OBJ/wifi.o

Binary file not shown.

1311
stm32/USER/Template.map

File diff suppressed because it is too large Load Diff

333
stm32/USER/Template.uvguix.QY

File diff suppressed because one or more lines are too long

40
stm32/USER/Template.uvoptx

@ -207,7 +207,7 @@
<Group> <Group>
<GroupName>USER</GroupName> <GroupName>USER</GroupName>
<tvExp>0</tvExp> <tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>
@ -343,7 +343,7 @@
<GroupNumber>2</GroupNumber> <GroupNumber>2</GroupNumber>
<FileNumber>11</FileNumber> <FileNumber>11</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>1</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>..\HARDWARE\DCmotor\motor.c</PathWithFileName> <PathWithFileName>..\HARDWARE\DCmotor\motor.c</PathWithFileName>
@ -351,6 +351,18 @@
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>
<bShared>0</bShared> <bShared>0</bShared>
</File> </File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>12</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>..\HARDWARE\DS1302\DS1302.c</PathWithFileName>
<FilenameWithoutPath>DS1302.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
</Group> </Group>
<Group> <Group>
@ -361,7 +373,7 @@
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>
<File> <File>
<GroupNumber>3</GroupNumber> <GroupNumber>3</GroupNumber>
<FileNumber>12</FileNumber> <FileNumber>13</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -373,7 +385,7 @@
</File> </File>
<File> <File>
<GroupNumber>3</GroupNumber> <GroupNumber>3</GroupNumber>
<FileNumber>13</FileNumber> <FileNumber>14</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -385,7 +397,7 @@
</File> </File>
<File> <File>
<GroupNumber>3</GroupNumber> <GroupNumber>3</GroupNumber>
<FileNumber>14</FileNumber> <FileNumber>15</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -405,7 +417,7 @@
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>
<File> <File>
<GroupNumber>4</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>15</FileNumber> <FileNumber>16</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -417,7 +429,7 @@
</File> </File>
<File> <File>
<GroupNumber>4</GroupNumber> <GroupNumber>4</GroupNumber>
<FileNumber>16</FileNumber> <FileNumber>17</FileNumber>
<FileType>2</FileType> <FileType>2</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -437,7 +449,7 @@
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>17</FileNumber> <FileNumber>18</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -449,7 +461,7 @@
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>18</FileNumber> <FileNumber>19</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -461,7 +473,7 @@
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>19</FileNumber> <FileNumber>20</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -473,7 +485,7 @@
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>20</FileNumber> <FileNumber>21</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -485,7 +497,7 @@
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>21</FileNumber> <FileNumber>22</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -497,7 +509,7 @@
</File> </File>
<File> <File>
<GroupNumber>5</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>22</FileNumber> <FileNumber>23</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
@ -517,7 +529,7 @@
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>
<File> <File>
<GroupNumber>6</GroupNumber> <GroupNumber>6</GroupNumber>
<FileNumber>23</FileNumber> <FileNumber>24</FileNumber>
<FileType>5</FileType> <FileType>5</FileType>
<tvExp>0</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>

7
stm32/USER/Template.uvprojx

@ -337,7 +337,7 @@
<MiscControls></MiscControls> <MiscControls></MiscControls>
<Define>STM32F10X_MD,USE_STDPERIPH_DRIVER</Define> <Define>STM32F10X_MD,USE_STDPERIPH_DRIVER</Define>
<Undefine></Undefine> <Undefine></Undefine>
<IncludePath>..\HARDWARE\LED;..\SYSTEM\delay;..\SYSTEM\sys;..\SYSTEM\usart;..\USER;..\STM32F10x_FWLib\inc;..\CORE;..\HARDWARE\ESP8266;..\HARDWARE\DHT11;..\HARDWARE\LCD1602;..\HARDWARE\ADC;..\HARDWARE\TIMER;..\HARDWARE\DS18B20;..\HARDWARE\cJSON;..\HARDWARE\DCmotor</IncludePath> <IncludePath>..\HARDWARE\LED;..\SYSTEM\delay;..\SYSTEM\sys;..\SYSTEM\usart;..\USER;..\STM32F10x_FWLib\inc;..\CORE;..\HARDWARE\ESP8266;..\HARDWARE\DHT11;..\HARDWARE\LCD1602;..\HARDWARE\ADC;..\HARDWARE\TIMER;..\HARDWARE\DS18B20;..\HARDWARE\cJSON;..\HARDWARE\DCmotor;..\HARDWARE\DS1302</IncludePath>
</VariousControls> </VariousControls>
</Cads> </Cads>
<Aads> <Aads>
@ -441,6 +441,11 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\HARDWARE\DCmotor\motor.c</FilePath> <FilePath>..\HARDWARE\DCmotor\motor.c</FilePath>
</File> </File>
<File>
<FileName>DS1302.c</FileName>
<FileType>1</FileType>
<FilePath>..\HARDWARE\DS1302\DS1302.c</FilePath>
</File>
</Files> </Files>
</Group> </Group>
<Group> <Group>

271
stm32/USER/main.c

@ -13,6 +13,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "motor.h" #include "motor.h"
#include "DS1302.h"
u8 humi_value,temp_value,temp_pig; u8 humi_value,temp_value,temp_pig;
u16 smog_value,beam_value; u16 smog_value,beam_value;
@ -22,98 +23,262 @@ int LowerThreshold = -10;
u8 temp_threshold = 10, humi_threshold = 10; u8 temp_threshold = 10, humi_threshold = 10;
u8 cleanFlag = 0x00, feedFlag = 0x00; u8 cleanFlag = 0x00, feedFlag = 0x00;
// 保存当前时间的结构体
struct timing nowTime;
// 切换模式 0 自动模式, 1 手动模式
int model = 0;
// 用户数据的结构体 // 用户数据的结构体
struct UserInfo{ struct UserInfo{
u8 humi_value; u8 humi_value; // 湿度
u8 temp_value; u8 temp_value; // 温度
u8 temp_pig; float temp_pig; // 猪温度
u8 temp_threshold; u8 conditioner; // 空调
u8 humi_threshold; u8 nappe; // 水帘
u8 cleanFlag; u8 water_gun; // 水枪
u8 feedFlag;
}; };
void Data_Deal(void) u8 Settime[6]={0x22,0x04,0x13,0x01,0x17,0x00}; // 设置时间 22年 03月 27日 22:34:00
struct UserInfo userInfo;
void SendUserInfo();
void SendTime();
int getTempResult(){
static int flag = 0, time_min = 0;
if(flag = 0){
// 温度 15 - 20 风扇待机
if(userInfo.temp_value > 15 && userInfo.temp_value <= 20){
LED_CONDITIONER = 0;
FAN = 1;
}else if(userInfo.temp_value < 15){ // 风扇停, 空调亮灯
LED_CONDITIONER = 1;
FAN = 0;
}else if(userInfo.temp_value > 20 && userInfo.temp_value <= 28){// 风扇转
LED_CONDITIONER = 0;
FAN = 1;
}else if( userInfo.temp_value > 28){
time_min = nowTime.min;
time_min += 3;
if(time_min > 59) time_min = time_min - 59;
flag = 1;
LED_CONDITIONER = 0;
LED_NAPPE = 1;
FAN = 1;
}
}else{
if(time_min == nowTime.min){
LED_CONDITIONER = 0;
LED_NAPPE = 0;
FAN = 0;
flag = 0;
}else{
LED_CONDITIONER = 0;
LED_NAPPE = 1;
FAN = 1;
}
}
if(userInfo.temp_pig > 40){
BEEP = ~BEEP;
LED_WATER_GUN = 1;
delay_ms(100);
}else{
BEEP = 0;
LED_WATER_GUN = 0;
}
return 0;
}
int getHumiResult(){
// 湿度 75% - 80% 风扇待机, 不亮
if(userInfo.humi_value > 75 && userInfo.humi_value <= 80){
LED_NAPPE = 0;
FAN = 0;
}else if(userInfo.humi_value < 50){ // 水帘亮灯
LED_NAPPE = 1;
FAN = 0;
}else if(userInfo.humi_value > 80){// 风扇转动
LED_NAPPE = 0;
FAN = 1;
}
return 0;
}
/**
* @description:
* @param {*}
* @return {*}
*/
void getData()
{
userInfo.nappe = LED_NAPPE;
userInfo.water_gun = LED_WATER_GUN;
userInfo.conditioner = LED_CONDITIONER;
}
/**
* @description:
* @param {*}
* @return {*}
*/
void Data_Deal()
{
// 获取数据
if(model == 0){
DHT11_Read_Data(&(userInfo.temp_value),&(userInfo.humi_value));
userInfo.temp_pig = DS18B20_Get_Temp()/10;
}
if(model != 2){
getTempResult();
getHumiResult();
}
getData();
}
/**
* @description:
* @param {*}
* @return {*}
*/
int getValue()
{ {
DHT11_Read_Data(&temp_value,&humi_value); int target1 = 0, target2 = 0,i = 0;
int result = 0;
target1 = strstr((const char*)USART_RX_BUF, "(") - USART_RX_BUF;
target2 = strstr((const char*)USART_RX_BUF, ")") - USART_RX_BUF;
result = 0;
for(i = target1 + 1; i < target2; i++){
result = result * 10 + (*(USART_RX_BUF + i) - 0x30);
}
return result;
} }
void Receive_data(void) void Receive_data(void)
{ {
// 接受到数据 // 接受到数据
if(USART_RX_STA & 0x8000){ if(USART_RX_STA & 0x8000){
// 模式切换
if(strstr((const char*)USART_RX_BUF, "model") != NULL){
model++;
if(model >= 3) model = 0;
if(model == 0) printf("automatic mode\r\n");
else if(model == 1) printf("manual1 mode\r\n");
else if(model == 2) printf("manual2 mode\r\n");
}
if(strstr((const char*)USART_RX_BUF, "getInfo") != NULL){
SendUserInfo();
}
if(strstr((const char*)USART_RX_BUF, "getTime") != NULL){
SendTime();
}
if(strstr((const char*)USART_RX_BUF, "feed") != NULL){
if(model == 0 || model == 1) printf("Please switch to manual2 mode\r\n");
else FAN = ~FAN;
}
if(strstr((const char*)USART_RX_BUF, "clean") != NULL){
if(model == 0 || model == 1) printf("Please switch to manual2 mode\r\n");
else CLEAN = ~CLEAN;
}
if(strstr((const char*)USART_RX_BUF, "setTemp") != NULL){
if(model == 0) printf("Please switch to manual1 mode\r\n");
else {
userInfo.temp_value = getValue();
printf("set temp_value OK\r\n");
}
}
if(strstr((const char*)USART_RX_BUF, "setTemp_pig") != NULL){
if(model == 0) printf("Please switch to manual1 mode\r\n");
else {
userInfo.temp_pig = getValue();
printf("set temp_pig OK\r\n");
}
}
if(strstr((const char*)USART_RX_BUF, "setHump") != NULL){
if(model == 0) printf("Please switch to manual1 mode\r\n");
else {
userInfo.humi_value = getValue();
printf("set humi_value OK\r\n");
}
}
memset(USART_RX_BUF, 0, sizeof(USART_RX_BUF));
USART_RX_STA = 0x00; USART_RX_STA = 0x00;
} }
} }
/**
* @description:
* @param {*}
* @return {*}
*/
void Crontab()
{
// 时间范围早上六点 到 晚上10点 投喂三次
if(nowTime.hour == 6 || nowTime.hour == 14 || nowTime.hour == 22 ){
// 投喂一分钟
if(nowTime.min == 0){
LED_WATER_GUN = 1;
CLEAN = 1;
}
else {
LED_WATER_GUN = 0;
CLEAN = 0;
}
}
}
void Sys_Init(void) void Sys_Init(void)
{ {
delay_init(); delay_init();
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
uart_init(115200); uart_init(115200);
USART3_init(115200); LED_Init();
//LED_Init(); DS1302_init(Settime);
Relay_Beep_Init(); //DS1302_SetTime(Settime);
DHT11_Init(); DHT11_Init();
DS18B20_Init(); DS18B20_Init();
motor_Init(); motor_Init();
} }
int getSum(u8 *data, int length){ /**
int sum = 0, i = 0; * @description:
for(i = 0; i < length; i++){ * @param {*}
sum += data[i]; * @return {*}
} */
return sum; void SendUserInfo()
} {
printf("temp:%d, humi:%d, temp_pig:%0.2f, conditioner:%d, nappe:%d, water_gun:%d \r\n",userInfo.temp_value, userInfo.humi_value, \
u8 deserialization(struct UserInfo *usr, u8* data, int length){ userInfo.temp_pig , userInfo.conditioner,userInfo.nappe,userInfo.water_gun);
if(length != 13) return -1;
if(data[length - 1] != 0x0D || data[0] != 0xFD) return -1;
if(getSum(data, length - 3) != (data[length - 3] * 256 + data[length - 2])) return -1;
usr->temp_value = data[3];
usr->humi_value = data[4];
usr->temp_pig = data[5];
usr->temp_threshold = data[6];
usr->humi_threshold = data[7];
usr->cleanFlag = data[8];
usr->feedFlag = data[9];
return 0;
} }
u8 serialize(struct UserInfo *usr, u8* data, int length){ /**
int sum = 0; * @description:
if(length != 13) return -1; * @param {*}
data[0] = 0xFD; * @return {*}
data[1] = 0x00; */
data[2] = 0x01; void SendTime()
data[3] = usr->temp_value; {
data[4] = usr->humi_value; printf("20%d-%d-%d %d:%d:%d\r\n", nowTime.year, nowTime.mon, nowTime.day, nowTime.hour, nowTime.min, nowTime.sec);
data[5] = usr->temp_pig;
data[6] = usr->temp_threshold;
data[7] = usr->humi_threshold;
data[8] = usr->cleanFlag;
data[9] = usr->feedFlag;
sum = getSum(data, 10);
data[10] = sum >> 8;
data[11] = sum & 0x00FF;
data[12] = 0x0D;
return 0;
} }
int main(void) int main(void)
{ {
Sys_Init(); Sys_Init();
delay_ms(1000); delay_ms(1000);
Data_Deal(); DS1302_SetTime(Settime);
BEEP = 0;
while(1) while(1)
{ {
PWM_init();
//LED_GREEN = ~LED_GREEN;
Data_Deal(); Data_Deal();
Receive_data(); Receive_data();
DS1302_Readtime();
delay_ms(200); delay_ms(200);
} }
} }

111
wifi/WiFiTelnetToSerial/WiFiTelnetToSerial.ino

@ -23,58 +23,8 @@ WiFiServer server(port); //创建服务器对象
WiFiClient serverClients[MAX_SRV_CLIENTS]; //连接对象数组 WiFiClient serverClients[MAX_SRV_CLIENTS]; //连接对象数组
ESP8266WiFiMulti WiFiMulti; ESP8266WiFiMulti WiFiMulti;
WiFiClient client;
struct UserInfo{
char humi_value;
char temp_value;
char temp_pig;
char temp_threshold;
char humi_threshold;
char cleanFlag;
char feedFlag;
};
int getSum(char *data, int length){
int sum = 0, i = 0;
for(i = 0; i < length; i++){
sum += data[i];
}
return sum;
}
char deserialization(struct UserInfo *usr, char* data, int length){
if(length != 13) return -1;
if(data[length - 1] != 0x0D || data[0] != 0xFD) return -1;
if(getSum(data, length - 3) != (data[length - 3] * 256 + data[length - 2])) return -1;
usr->temp_value = data[3];
usr->humi_value = data[4];
usr->temp_pig = data[5];
usr->temp_threshold = data[6];
usr->humi_threshold = data[7];
usr->cleanFlag = data[8];
usr->feedFlag = data[9];
return 0;
}
char serialize(struct UserInfo *usr, char* data, int length){
int sum = 0;
if(length != 13) return -1;
data[0] = 0xFD;
data[1] = 0x00;
data[2] = 0x01;
data[3] = usr->temp_value;
data[4] = usr->humi_value;
data[5] = usr->temp_pig;
data[6] = usr->temp_threshold;
data[7] = usr->humi_threshold;
data[8] = usr->cleanFlag;
data[9] = usr->feedFlag;
sum = getSum(data, 10);
data[10] = sum >> 8;
data[11] = sum & 0x00FF;
data[12] = 0x0D;
return 0;
}
// 初始化函数 // 初始化函数
void setup() { void setup() {
@ -100,48 +50,19 @@ void setup() {
Serial.println("IP address: "); Serial.println("IP address: ");
Serial.println(WiFi.localIP()); //获取自身IP地址 Serial.println(WiFi.localIP()); //获取自身IP地址
delay(500); delay(500);
//启动服务器
server.begin(); if (!client.connect("101.35.200.152", 7400)) {
server.setNoDelay(true); //关闭小包合并包模式并去除延时 Serial.println("connection failed");
delay(5000);
return;
}
// 登录
client.write("{\"usr\":\"admin1\", \"pwd\":\"147258369\"}");
} }
// loop函数 // loop函数
void loop() { void loop() {
//如果新的连接请求
if (server.hasClient())
{
int i = 0;
for (i = 0; i < MAX_SRV_CLIENTS; i++)
{
if (!serverClients[i]) //遍历连接
{
serverClients[i] = server.available();//建立新的连接
Serial.print("New:");
Serial.print(i+1);
break;
}
}
//如果连接数量已经达到最大
if (i == MAX_SRV_CLIENTS)
{
WiFiClient client = server.available();
client.stop();
Serial.print("stop\n");
}
}
//检测客户端发送上来的信息
for (int i = 0; i < MAX_SRV_CLIENTS; i++)
{
//如果该客户端处于连接状态
if(serverClients[i] && serverClients[i].connected())
{
while(serverClients[i].available())
{
uint8_t c = serverClients[i].read();
Serial.write(c);
}
}
}
// 如果串口接收到数据 // 如果串口接收到数据
if(Serial.available()) if(Serial.available())
{ {
@ -149,13 +70,13 @@ void loop() {
size_t counti = Serial.available(); size_t counti = Serial.available();
uint8_t sbuf[counti]; uint8_t sbuf[counti];
Serial.readBytes(sbuf, counti); Serial.readBytes(sbuf, counti);
for (int i = 0; i < MAX_SRV_CLIENTS; i++) if(client.connected()){
{ client.write(sbuf, counti);
// 如果客户端还处于连接状态
if(serverClients[i] && serverClients[i].connected())
{
serverClients[i].write(sbuf,counti); //将串口接收到的数据发送到各个客户端
} }
} }
while(client.available())
{
uint8_t c = client.read();
Serial.write(c);
} }
} }

Loading…
Cancel
Save