feat:修改设备类型

feat:修改为红外转发设备,将中弘网关协议转换为主机红外协议
This commit is contained in:
yeyangwen
2026-02-09 17:32:59 +08:00
parent 2285326a47
commit 13980737e3
1380 changed files with 504456 additions and 0 deletions

60
Source/includes.h Normal file
View File

@@ -0,0 +1,60 @@
#ifndef _INCLUDES_H_
#define _INCLUDES_H_
#include "apt32f102.h"
#include "apt32f102_adc.h"
#include "apt32f102_bt.h"
#include "apt32f102_coret.h"
#include "apt32f102_countera.h"
#include "apt32f102_crc.h"
#include "apt32f102_ept.h"
#include "apt32f102_et.h"
#include "apt32f102_gpio.h"
#include "apt32f102_gpt.h"
#include "apt32f102_i2c.h"
#include "apt32f102_ifc.h"
#include "apt32f102_lpt.h"
#include "apt32f102_rtc.h"
#include "apt32f102_sio.h"
#include "apt32f102_spi.h"
#include "apt32f102_syscon.h"
#include "apt32f102_uart.h"
#include "apt32f102_wwdt.h"
#include "apt32f102_types_local.h"
#include "apt32f102_clkcalib.h"
#include "apt32f102_tkey.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*应用代码头文件*/
#include "uart.h"
#include "eeprom.h"
#include "tempctrl_unit.h"
#include "uart_protocol.h"
#include "Bootload_fun.h"
#include "dip_switch.h"
/*工程名称及软件版本号
此定义在每个工程中必须定义,用于识别当前工程对应的机型
Boot中会通过读取EEPROM中保存的设备信息来判断当前是什么机型
如果EEPROM 中没有保存设备信息那么当前就是Boot程序设备地址为0x00设备类型为0x00
*/
#define Project_Area 0x02 //工程所处区域为APP区域 0x01:Boot区域0x02:APP区域
#define Peoject_Name "T1_TC_ZH_V02" //工程名称
#define Project_FW_Version 0x02 //工程对应的软件版本号
#define Project_Type 0x0F //工程对应的设备类型 Boot默认设备类型
#define Project_HW_Version 0x02 //软件对应的硬件版本号
extern volatile U32_T SysTick_100us;
extern volatile U32_T SysTick_1ms;
extern volatile unsigned int Sys_RSR;
extern volatile unsigned int Sav_Temp;
#endif