From ffeaf4771e8758eb6903ebc1aa242fabbbdc425f Mon Sep 17 00:00:00 2001 From: wgzAIIT <820906721@qq.com> Date: Wed, 17 May 2023 14:32:48 +0800 Subject: [PATCH] fix cortex-m0-emulator and cortex-m3-emulator compile error --- Ubiquitous/XiZi_IIoT/arch/arm/cortex-m0/prepare_ahwstack.c | 1 + Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c | 1 + Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/.defconfig | 4 ++-- Ubiquitous/XiZi_IIoT/board/cortex-m3-emulator/.defconfig | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Ubiquitous/XiZi_IIoT/arch/arm/cortex-m0/prepare_ahwstack.c b/Ubiquitous/XiZi_IIoT/arch/arm/cortex-m0/prepare_ahwstack.c index 3562c1cf7..0ad6744a2 100644 --- a/Ubiquitous/XiZi_IIoT/arch/arm/cortex-m0/prepare_ahwstack.c +++ b/Ubiquitous/XiZi_IIoT/arch/arm/cortex-m0/prepare_ahwstack.c @@ -16,6 +16,7 @@ #include "svc_handle.h" #include #include +#include #if (defined ( __GNUC__ ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) #define USE_FPU 1 diff --git a/Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c b/Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c index 57935a830..bb941dcf6 100644 --- a/Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c +++ b/Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c @@ -18,6 +18,7 @@ #ifdef TOOL_SHELL #include #endif +#include #if (defined ( __GNUC__ ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) #define USE_FPU 1 diff --git a/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/.defconfig b/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/.defconfig index 3306c4652..29620e5d2 100644 --- a/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/.defconfig +++ b/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/.defconfig @@ -146,8 +146,8 @@ CONFIG_SHELL_USING_CMD_EXPORT=y CONFIG_SHELL_HELP_SHOW_PERMISSION=y # CONFIG_SHELL_HELP_LIST_VAR is not set # CONFIG_SHELL_HELP_LIST_KEY is not set -#CONFIG_KERNEL_QUEUEMANAGE=y -# CONFIG_KERNEL_WORKQUEUE is not set +CONFIG_KERNEL_QUEUEMANAGE=y +CONFIG_KERNEL_WORKQUEUE=y CONFIG_WORKQUEUE_KTASK_STACKSIZE=256 CONFIG_WORKQUEUE_KTASK_PRIORITY=2 CONFIG_QUEUE_MAX=2 diff --git a/Ubiquitous/XiZi_IIoT/board/cortex-m3-emulator/.defconfig b/Ubiquitous/XiZi_IIoT/board/cortex-m3-emulator/.defconfig index 22fb37eba..428cfeecd 100644 --- a/Ubiquitous/XiZi_IIoT/board/cortex-m3-emulator/.defconfig +++ b/Ubiquitous/XiZi_IIoT/board/cortex-m3-emulator/.defconfig @@ -136,8 +136,8 @@ CONFIG_SHELL_USING_CMD_EXPORT=y CONFIG_SHELL_HELP_SHOW_PERMISSION=y # CONFIG_SHELL_HELP_LIST_VAR is not set # CONFIG_SHELL_HELP_LIST_KEY is not set -#CONFIG_KERNEL_QUEUEMANAGE=y -# CONFIG_KERNEL_WORKQUEUE is not set +CONFIG_KERNEL_QUEUEMANAGE=y +CONFIG_KERNEL_WORKQUEUE=y CONFIG_WORKQUEUE_KTASK_STACKSIZE=256 CONFIG_WORKQUEUE_KTASK_PRIORITY=2 CONFIG_QUEUE_MAX=2