From da80b96a9d0f2f9dc6e23d1a1830cc2384f2bd0b Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期五, 01 八月 2025 13:45:57 +0800
Subject: [PATCH] 加入升级代码,但是空间不够  先提交一下  改为分成两个app  由boot来进行跳转

---
 keil/include/components/hido/Include/HIDO_Shell.h |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/keil/include/components/hido/Include/HIDO_Shell.h b/keil/include/components/hido/Include/HIDO_Shell.h
new file mode 100644
index 0000000..cac1da8
--- /dev/null
+++ b/keil/include/components/hido/Include/HIDO_Shell.h
@@ -0,0 +1,32 @@
+#ifndef _HIDO_SHELL_H_
+#define _HIDO_SHELL_H_
+
+#include "HIDO_TypeDef.h"
+#include "HIDO_Input.h"
+
+#define SHELL_CMD_MAX_COUNT                 80
+
+typedef HIDO_INT32 (*HIDO_ShellCmdFunc)(HIDO_INT32, HIDO_CHAR **);
+
+typedef struct ShellCmdStruct
+{
+    const HIDO_CHAR *m_pcName;
+    HIDO_ShellCmdFunc m_fnProc;
+}HIDO_ShellCmdStruct;
+
+#define HIDO_ShellPrintf(...)\
+{\
+    if(HIDO_ShellGetInput() != HIDO_NULL && (HIDO_ShellGetInput()->m_fnPrintf) != HIDO_NULL)\
+    {\
+        HIDO_ShellGetInput()->m_fnPrintf(__VA_ARGS__);\
+    }\
+}
+
+HIDO_UINT32 HIDO_ShellGetCmdCount(void);
+HIDO_VOID HIDO_ShellSetInput(HIDO_InputStruct *_pstInput);
+HIDO_InputStruct* HIDO_ShellGetInput(void);
+HIDO_INT32 HIDO_ShellExecute(HIDO_CHAR *_pcShellCmd);
+const HIDO_CHAR* HIDO_ShellGetCmdName(HIDO_UINT32 _u32Index);
+HIDO_INT32 HIDO_ShellCmdRegister(const HIDO_ShellCmdStruct *_pstShellCmd, HIDO_UINT32 _u32ShellCmdCnt);
+
+#endif /* _HIDO_SHELL_H_ */

--
Gitblit v1.9.3