helloyifa 31f179cb76 init
2025-05-15 14:19:56 +08:00

79 lines
1.9 KiB
C
Executable File

#ifndef __ILOCK_CONFIG_H__
#define __ILOCK_CONFIG_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "gpio_map.h"
#include "gpio_driver.h"
#include <driver/gpio.h>
/**
* 2.0.1.9 更新频偏参数
* 2.0.2.1 更新7258 SDK v2.0.1.31
* 2.0.2.2 新加画质切换功能
* 2.0.2.3 添加配网结果使用BLE NOTIFY 传给APP
* 添加麦克风PCM声音增益,再传递给声网平台
*
*/
//{AA,BB,CC,DD}
#define ILOCK_SOFT_VERSION_1 2 // DEV 1--LFV1 2--LFV2
#define ILOCK_SOFT_VERSION_2 0
#define ILOCK_SOFT_VERSION_3 2 // RELEASES
#define ILOCK_SOFT_VERSION_4 7 // DEBUG
/*
* 嵌入式视频对讲锁面WIFI版
*/
#define ILOCK_PRODUCT_LFV1 1
/**
* 外挂式视频对讲锁面WIFI版
*/
#define ILOCK_PRODUCT_LFV2 2
#define ILOCK_PRODUCT ILOCK_PRODUCT_LFV1
//C8 47 8C E4 F4 DE
//#define ILOCK_TEST_STATIC_MAC 1
#define ILOCK_DEVICE_ID_PERFIX "LFV1_A0FE2302"
#define ILOCK_DEVICE_ID_PERFIX2 "LFV2_A0FE2402"
#define ILOCK_POWERSAVE_TIMEOUT 1000*10
#define ILOCK_BLE_BOARDING_CLOSE_TIMEOUT 60*3 //60*5 (S)
#define ILOCK_MQTT_PINGPONG_TIMEOUT 65*2 //S
#define ILOCK_MQTT_PINGPONG_FAIL_MAX 3 //MQTT心跳失败最大次数
#define ILOCK_POWER_WAKEUP_GPIO GPIO_34
#define ILOCK_SETTINGS_KEY_GPIO GPIO_35
/**
* 7258开发板
*/
#define ILOCK_TEST_BROAD 1
/**
* 开启语音识别
*/
#define ILOCK_AI_ASR 0
// LFV1_230_7258_Vx.x.x.x.bin
/**
* 工作模式
*/
typedef enum
{
/**
* 正常工作模式
*/
MODE_NORMAL,
/**
* OTA升级模式
*/
MODE_OTA
} work_mode_t;
#ifdef __cplusplus
}
#endif
#endif