Files
HSP_demo/has_project/has_platform_config.h
2026-04-14 18:25:35 +08:00

46 lines
1.2 KiB
C
Raw Permalink 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 HAS_PLATFORM_CONFIG_H
#define HAS_PLATFORM_CONFIG_H
/* 1.定义模块数量 */
#define MODULE_LIST \
GUI, \
ACM, \
WIFI, \
VOICE, \
/* 2.定义硬件模块数量 */
#define DRIVER_LIST \
WAKE_UP_SRC, \
VIDEO, \
UART, \
/* 3.完成模块间的发布订阅表,格式:模块 订阅数量 订阅模块 */
#define SUBSCIBE_INFO \
{ \
{GUI, 3, {ACM, WIFI, VOICE}}, \
{WIFI, 1, {GUI}}, \
{ACM, 2, {WIFI, GUI}}, \
}
#define CEHCK_CONFIG_H 1 // 如果打开代码初始化时会检查config是否写错开发时应该打开
/* 4.选择操作系统 */
#define HAS_OS_LINUX // Linux系统
// #define HAS_OS_freeRTOS // freeRTOS系统
// #define HAS_OS_RT_THREAD // rt-thread系统
// #define HAS_OS_NONE_OR_OSAL // 裸机或osal
// #define HAS_OS_USER_DEFINED // 自定义,806
#ifdef HAS_OS_USER_DEFINED
/* 这里包含自定义的头文件 */
#include "has_806_os_port/has_os_806_port.h"
#endif
/* 5.打开需要的模块 */
#define HAS_ENABLE_TIMER // 启用软件定时器模块
#define HAS_ENABLE_IOBUFFER // 协议数据缓冲区管理
#define HAS_ENABLE_PROTOCOL // HAS协议模块
// #define HAS_ENABLE_CRC // CRC
// #define HAS_ENABLE_CJSON // CJSON
// #define HAS_ENABLE_MD5 // MD5
#endif