69 lines
3.2 KiB
C
69 lines
3.2 KiB
C
#ifndef APP_CONFIG_H
|
||
#define APP_CONFIG_H
|
||
|
||
#define __FLASH_SIZE__ (4 * 1024 * 1024)
|
||
#define __SDRAM_SIZE__ (2 * 1024 * 1024)
|
||
|
||
#define CONFIG_LTE_PHY_ENABLE
|
||
//#define CONFIG_WIFI_ENABLE /* 无线WIFI */
|
||
#ifdef CONFIG_NO_SDRAM_ENABLE
|
||
#define CONFIG_RF_TRIM_CODE_MOVABLE //把RF TRIM 的运行代码动态加载到ram运行(节省4K ram内存), 防止RF TRIM 期间500ms大电流访问flash造成flash挂掉持续大电流
|
||
#else
|
||
#define CONFIG_RF_TRIM_CODE_AT_RAM //把RF TRIM 的运行代码定死到ram运行(浪费4K ram内存,否则若动态加载到sdram需清cache), 防止RF TRIM 期间500ms大电流访问flash造成flash挂掉持续大电流
|
||
#endif
|
||
//#define CONFIG_ASSIGN_MACADDR_ENABLE //第一次开机连上外网后,使用杰理服务器分配WIFI模块的MAC地址, 关闭则使用<蓝牙地址更新工具*.exe>或者随机数作为MAC地址
|
||
#define CONFIG_IPERF_ENABLE // iperf测试
|
||
//#define CONFIG_AIRKISS_NET_CFG //AIRKISS配网
|
||
#define RTOS_STACK_CHECK_ENABLE
|
||
//#define CONFIG_STATIC_IPADDR_ENABLE //记忆路由器分配的IP,下次直接使用记忆IP节省DHCP时间
|
||
|
||
#ifndef CONFIG_STORAGE_PATH
|
||
#define CONFIG_STORAGE_PATH "storage/sdx" //不使用SD定义对应别的路径,防止编译出错
|
||
#define SDX_DEV "sdx"
|
||
#endif
|
||
|
||
#ifdef CONFIG_LTE_PHY_ENABLE
|
||
#define TCFG_PC_ENABLE 0 //使用USB从机功能一定要打开
|
||
#define USB_PC_NO_APP_MODE 2
|
||
#define USB_MALLOC_ENABLE 1
|
||
#define TCFG_HOST_WIRELESS_ENABLE 1
|
||
#define TCFG_ADB_ENABLE 1 //usb虚拟网卡
|
||
#include "usb_std_class_def.h"
|
||
#include "usb_common_def.h"
|
||
#endif
|
||
|
||
//*********************************************************************************//
|
||
// 电源配置 //
|
||
//*********************************************************************************//
|
||
//#define CONFIG_LOW_POWER_ENABLE //WIFI节能模式开关
|
||
#define TCFG_LOWPOWER_BTOSC_DISABLE 0
|
||
|
||
#ifdef CONFIG_LOW_POWER_ENABLE
|
||
#define TCFG_LOWPOWER_LOWPOWER_SEL RF_SLEEP_EN //配置仅WIFI RF休眠
|
||
#else
|
||
#define TCFG_LOWPOWER_LOWPOWER_SEL 0
|
||
#endif
|
||
#define TCFG_LOWPOWER_VDDIOM_LEVEL VDDIOM_VOL_32V //强VDDIO电压档位,不要高于外部DCDC的电压
|
||
#define TCFG_LOWPOWER_VDDIOW_LEVEL VDDIOW_VOL_21V //弱VDDIO电压档位
|
||
#define VDC14_VOL_SEL_LEVEL VDC14_VOL_SEL_140V //RF1.4V电压档位
|
||
#define SYSVDD_VOL_SEL_LEVEL SYSVDD_VOL_SEL_126V //内核电压档位值
|
||
|
||
//*********************************************************************************//
|
||
// FCC测试相关配置 //
|
||
//*********************************************************************************//
|
||
//#define RF_FCC_TEST_ENABLE//使能RF_FCC测试,详细配置见"apps/common/rf_fcc_tool/include/rf_fcc_main.h"
|
||
|
||
#define CONFIG_DEBUG_ENABLE /* 打印开关 */
|
||
|
||
//#define SDTAP_DEBUG
|
||
|
||
#if !defined CONFIG_DEBUG_ENABLE || defined CONFIG_LIB_DEBUG_DISABLE
|
||
#define LIB_DEBUG 0
|
||
#else
|
||
#define LIB_DEBUG 1
|
||
#endif
|
||
#define CONFIG_DEBUG_LIB(x) (x & LIB_DEBUG)
|
||
|
||
#endif
|
||
|