From 54e0186ca41cda4dcd33acf845416112c9ea587c Mon Sep 17 00:00:00 2001 From: Wxqwu Date: Tue, 5 Nov 2024 19:57:32 +0800 Subject: [PATCH] congif --- build/uniproton_config/config_armv8_ascend310b/defconfig | 9 ++++++++- demos/ascend310b/config/prt_config.h | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/build/uniproton_config/config_armv8_ascend310b/defconfig b/build/uniproton_config/config_armv8_ascend310b/defconfig index 1a4d5d35..56d18e1f 100644 --- a/build/uniproton_config/config_armv8_ascend310b/defconfig +++ b/build/uniproton_config/config_armv8_ascend310b/defconfig @@ -32,7 +32,9 @@ CONFIG_OS_THIS_CORE=0 CONFIG_INTERNAL_OS_BYTE_ORDER_LE=y CONFIG_OS_BYTE_ORDER="OS_LITTLE_ENDIAN" # CONFIG_OS_OPTION_CPU64 is not set +CONFIG_OS_OPTION_CPU64=y # CONFIG_OS_OPTION_SMP is not set +CONFIG_OS_OPTION_SMP=y # CONFIG_OS_OPTION_DCACHE is not set CONFIG_OS_CACHE_LINE_SIZE=64 @@ -65,7 +67,9 @@ CONFIG_OS_OPTION_QUEUE=y # Semaphore feature configuration # # CONFIG_OS_OPTION_BIN_SEM is not set +CONFIG_OS_OPTION_BIN_SEM=y # CONFIG_OS_OPTION_SEM_RECUR_PV is not set +CONFIG_OS_OPTION_SEM_RECUR_PV=y # CONFIG_OS_OPTION_SEM_PRIOR is not set # @@ -77,6 +81,7 @@ CONFIG_OS_OPTION_QUEUE=y # # CONFIG_OS_OPTION_HWI_COMBINE is not set # CONFIG_OS_OPTION_HWI_AFFINITY is not set +CONFIG_OS_OPTION_HWI_AFFINITY=y CONFIG_OS_OPTION_HWI_PRIORITY=y CONFIG_OS_OPTION_HWI_ATTRIBUTE=y # CONFIG_OS_OPTION_HWI_MAX_NUM_CONFIG is not set @@ -84,9 +89,10 @@ CONFIG_OS_OPTION_HWI_ATTRIBUTE=y # # Exc Modules Configuration # -CONFIG_INTERNAL_OS_SCHEDULE_SINGLE_CORE_BY_CCODE=y +# CONFIG_INTERNAL_OS_SCHEDULE_SINGLE_CORE_BY_CCODE=y # CONFIG_OS_OPTION_SYS_TIME_USR is not set # CONFIG_INTERNAL_OS_SPIN_LOCK is not set +CONFIG_INTERNAL_OS_SPIN_LOCK=y # # @@ -102,6 +108,7 @@ CONFIG_OS_OPTION_TASK_DELETE=y CONFIG_OS_OPTION_TASK_SUSPEND=y CONFIG_OS_OPTION_TASK_INFO=y # CONFIG_OS_OPTION_TASK_AFFINITY_STATIC is not set +CONFIG_OS_OPTION_TASK_AFFINITY_STATIC=y CONFIG_OS_OPTION_TASK_YIELD=y CONFIG_OS_TSK_PRIORITY_HIGHEST=0 CONFIG_OS_TSK_PRIORITY_LOWEST=63 diff --git a/demos/ascend310b/config/prt_config.h b/demos/ascend310b/config/prt_config.h index fb21a523..2fc5d6c3 100644 --- a/demos/ascend310b/config/prt_config.h +++ b/demos/ascend310b/config/prt_config.h @@ -56,7 +56,7 @@ extern "C" { /* 任务模块裁剪开关 */ #define OS_INCLUDE_TASK YES /* 最大支持的任务数,最大共支持254个 */ -#define OS_TSK_MAX_SUPPORT_NUM 32 +#define OS_TSK_MAX_SUPPORT_NUM 300 /* 缺省的任务栈大小 */ #define OS_TSK_DEFAULT_STACK_SIZE 0x1000 /* IDLE任务栈的大小 */ @@ -89,7 +89,7 @@ extern "C" { #define OS_INCLUDE_SEM YES /* 最大支持的信号量数 */ -#define OS_SEM_MAX_SUPPORT_NUM 10 +#define OS_SEM_MAX_SUPPORT_NUM 300 /* ***************************** 配置队列模块 ******************************* */ /* 队列模块裁剪开关 */ -- Gitee