From 94b49ffea4066a3504819822b0e34e35b91793fa Mon Sep 17 00:00:00 2001 From: Zheng Wu Date: Wed, 2 Jul 2025 21:50:39 +0800 Subject: [PATCH] add marco condition for SHELL_EXPORT_CMD in arch --- Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c b/Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c index bb941dcf6..daef8664e 100644 --- a/Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c +++ b/Ubiquitous/XiZi_IIoT/arch/arm/shared/prepare_ahwstack.c @@ -411,4 +411,6 @@ __attribute__((weak)) void HwCpuReset(void) { SCB_AIRCR = SCB_RESET_VALUE; } -SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0)|SHELL_CMD_TYPE(SHELL_TYPE_CMD_FUNC)|SHELL_CMD_PARAM_NUM(0), Reboot, HwCpuReset, reset machine ); \ No newline at end of file +#ifdef SHELL_EXPORT_CMD +SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0)|SHELL_CMD_TYPE(SHELL_TYPE_CMD_FUNC)|SHELL_CMD_PARAM_NUM(0), Reboot, HwCpuReset, reset machine ); +#endif \ No newline at end of file