10.1_demo/include/e_conf.h

74 lines
2.4 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef E_CONF_H
#define E_CONF_H
#include "version.h"
// #if DISP_COUNT == 2
// // 应用名称 应用更新使用
// #define APP_ID "com.eplayer.linux_dual.00"
// // 系统固件ID
// #define FIRMWARE_ID "com.eplayer.firmware.linux_dual.00"
// #else
// #define APP_ID "com.eplayer.linux_single.00"
// // 系统固件ID
// #define FIRMWARE_ID "com.eplayer.firmware.linux_single.00"
// #endif
// 蓝牙模块ID
#define BLE_ID "com.eplayer.ble.00.00"
// 蓝牙模块安装路径(包括文件名)
#define BLE_INSTALL_PATH "/data/bin/lbh_client"
// 心跳默认间隔
#define DEFAULT_HEARTBEAT_INTERVAL 60
// 设备ID长度 如果为12为ID则设置138为ID则设置9。
#define DEVICE_ID_LENGTH 13 // 9
// 任务保存目录
#define DIR_TASK "/data/task"
// 自定义事件保存路径
#define EVENT_NOFIFY "/data/task/event.cfg"
// 日志目录和大小限制
#define LOG_DIR "/data/log"
#define MAX_LOG_SIZE (512 * 1024) // 512KB
// 下载文件目录
#define DIR_FILES "/data/downloads"
// 存储分区路径
#define STORAGE_PARTITIONS "/data"
// wifi 保存位置
#define WIFI_LIST_FILE "/data/config/wifi.cfg" // 当前目录
// 配置文件路径
#define CONFIG_FILE_PATH "/data/config/config.cfg" // 当前目录
// 只读配置文件路径
// #define PLAYER_FILE_PATH "/data/config/system_properties.cfg"
#define PLAYER_FILE_PATH "/system/factory/system_properties.cfg"
#define FB_DEV_FRONT "/dev/fb0" // 前屏 framebuffer 设备
#define FB_DEV_BACK "/dev/fb4" // 背屏 framebuffer 设备
#define E_SYNC_PLAY 1 // 是否开启同步播放
#define E_LAYER_SUPPORT 1 // 是否支持多图层
// #define DISP_BUF_SIZE (LV_USE_VER_SIZE * LV_USE_HOR_SIZE * 4)
// #define DISP_BUF_SIZE (LV_USE_VER_SIZE * 40 * 4)
#define DISP_BUF_SIZE (LV_USE_VER_SIZE * LV_USE_HOR_SIZE / 2)
//是否启用多线程下载
//当前Linux10.1磁盘空间为64MB如果启用多线程下载每个线程下载10MB合并文件时会导致磁盘空间不足
#define ENABLE_MULTI_THREADS 0
//是否开启播放视频双缓冲默认关闭当前设备最大内存为64MB业务要求最大播放视频为50MB。如果开启会导致空间不足无法连续播放大视频。
#define ENABLE_VIDEO_DOUBLE_BUFFER 0
//是否支持GIF默认禁用
#define ENABLE_GIF_SUPPORT 0
//只读分区路径
#define SYSTEM_PARTITION "/system" // 系统分区路径
#endif // E_CONF_H