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