From 9646f68069e2d3c607d9a03f436d999d1c7b1615 Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期二, 11 十一月 2025 23:54:01 +0800
Subject: [PATCH] 杜工改好第一版,4G能正常上传数据,但是没有shell,TCP也没有,需要再次修改。2 AI添加GPS解析代码。
---
STM32H743/APL/app.c | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/STM32H743/APL/app.c b/STM32H743/APL/app.c
index 4ca81fd..401f89f 100644
--- a/STM32H743/APL/app.c
+++ b/STM32H743/APL/app.c
@@ -23,16 +23,18 @@
while (1)
{
- HIDO_UINT32 timeout = HIDO_TimerGetNearestTimeout(1000);
+ //HIDO_UINT32 timeout = HIDO_TimerGetNearestTimeout(1000);
+ HIDO_UINT32 timeout = 100;
if (xSemaphoreTake(g_semaphoreHandle, timeout / portTICK_PERIOD_MS) == pdTRUE)
{
- DBG_Poll();
- BT_Poll();
- HIDO_ATLitePoll();
- Internet_Poll();
- GPS_Poll();
- UDPClient_Poll();
+
}
+ DBG_Poll();
+ BT_Poll();
+ HIDO_ATLitePoll();
+ Internet_Poll();
+ GPS_Poll();
+ UDPClient_Poll();
HIDO_TimerPoll();
}
@@ -53,6 +55,14 @@
}
}
+void app_trigger(void)
+{
+ if (g_semaphoreHandle != NULL)
+ {
+ xSemaphoreGive(g_semaphoreHandle);
+ }
+}
+
void app_main(void)
{
MCUFlash_Init();
--
Gitblit v1.9.3