From 4cdc4b3d488e15b1d6572bdcd61a2ce92d0c8c9b Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期五, 16 五月 2025 18:13:14 +0800
Subject: [PATCH] 成功分离2个测距功能

---
 keil/include/components/internet/src/Internet.c |  128 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 128 insertions(+), 0 deletions(-)

diff --git a/keil/include/components/internet/src/Internet.c b/keil/include/components/internet/src/Internet.c
new file mode 100644
index 0000000..0f8b11b
--- /dev/null
+++ b/keil/include/components/internet/src/Internet.c
@@ -0,0 +1,128 @@
+/*******************************************************************************
+ * File Name         : Internet.c
+ * Description       :
+ * Created on        : 2018年5月26日
+ * Author            : 杜键
+ *******************************************************************************/
+
+/*******************************************************************************
+ *                              Include Files                                  *
+ *******************************************************************************/
+#include "Internet.h"
+#include "AIR780EDriver.h"
+#include "AIR780EFSM.h"
+
+/*******************************************************************************
+ *                                  Macro                                      *
+ *******************************************************************************/
+
+/*******************************************************************************
+ *                             Type Definition                                 *
+ *******************************************************************************/
+
+/*******************************************************************************
+ *                             Local Variable                                  *
+ *******************************************************************************/
+
+/*******************************************************************************
+ *                        Local Function Declaration                           *
+ *******************************************************************************/
+
+/*******************************************************************************
+ *                             Local Function                                  *
+ *******************************************************************************/
+
+/*******************************************************************************
+ *                             Global Function                                 *
+ *******************************************************************************/
+
+/*******************************************************************************
+ * Function Name     : Internet_Poll
+ * Description       : 
+ * Input             : 
+ * Output            : 
+ * Return            : 
+ * Author            : 杜键
+ * Modified Date:    : 2018年5月26日
+ *******************************************************************************/
+HIDO_INT32 Internet_Poll(void)
+{
+ 	HIDO_FSMEventExecute(HIDO_FSM(AIR780E), AIR780E_EVENT_POLL, HIDO_NULL);
+
+    return HIDO_OK;
+}
+
+/*******************************************************************************
+ * Function Name     : Internet_Poll
+ * Description       :
+ * Input             :
+ * Output            :
+ * Return            :
+ * Author            : 杜键
+ * Modified Date:    : 2018年5月26日
+ *******************************************************************************/
+HIDO_INT32 Internet_DebugOn(void)
+{
+    AIR780EDriver_DebugOn();
+
+    return HIDO_OK;
+}
+
+/*******************************************************************************
+ * Function Name     : SIM8xxDriver_DebugOff
+ * Description       :
+ * Input             :
+ * Output            :
+ * Return            :
+ * Author            : 杜键
+ * Modified Date:    : 2018年5月22日
+ *******************************************************************************/
+HIDO_INT32 Internet_DebugOff(void)
+{
+    AIR780EDriver_DebugOff();
+
+    return HIDO_OK;
+}
+
+/*******************************************************************************
+ * Function Name     : Internet_Poll
+ * Description       :
+ * Input             :
+ * Output            :
+ * Return            :
+ * Author            : 杜键
+ * Modified Date:    : 2018年5月26日
+ *******************************************************************************/
+HIDO_BOOL Internet_IsIPReady(void)
+{
+    return AIR780E_IsIPReady();
+}
+
+/*******************************************************************************
+ * Function Name     : Internet_Poll
+ * Description       :
+ * Input             :
+ * Output            :
+ * Return            :
+ * Author            : 杜键
+ * Modified Date:    : 2018年5月26日
+ *******************************************************************************/
+HIDO_INT32 Internet_Init(void)
+{
+    if (AIR780EDriver_Init() != HIDO_OK)
+    {
+        return HIDO_ERR;
+    }
+#if 0
+    if (TTS_Init() != HIDO_OK)
+    {
+        return HIDO_ERR;
+    }
+    
+    if (TONE_Init() != HIDO_OK)
+    {
+        return HIDO_ERR;
+    }
+#endif
+    return HIDO_OK;
+}

--
Gitblit v1.9.3