first init
This commit is contained in:
39
has_project/has_platform_config.h
Normal file
39
has_project/has_platform_config.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user