Files
HSP_demo/has_project/has_platform_config.h
2026-04-10 18:10:51 +08:00

40 lines
933 B
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 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}}, \
}
/* 如果打开代码初始化时会检查config是否写错开发时应该打开 */
#define CEHCK_CONFIG_H 1
#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
#endif