From 75544b683feca0b57fb7d5fa00cbc376dc6e62a5 Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期五, 04 七月 2025 18:06:30 +0800
Subject: [PATCH] V1.28 针对东营高精度方案,专网匹配,去掉了4G入网 APN和查询IP的代码。

---
 keil/include/drivers/mk_misc.c |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/keil/include/drivers/mk_misc.c b/keil/include/drivers/mk_misc.c
index 5eb2565..99604ab 100644
--- a/keil/include/drivers/mk_misc.c
+++ b/keil/include/drivers/mk_misc.c
@@ -382,14 +382,31 @@
 
 void sys_reset(uint32_t error)
 {
-    LOG_INFO(TRACE_MODULE_DRIVER, "system reboot%x", error);
+    //LOG_INFO(TRACE_MODULE_DRIVER, "system reboot%x", error);
 
     delay_us(10000);
 
     // reboot
     reset_module(RESET_MODULE_REBOOT);
 }
-
+void delay_US(uint32_t nTimer)  
+{  
+    uint32_t i=0;  
+    for(i=0;i<nTimer;i++){  
+        __NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
+		__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
+		__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();  
+        __NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
+		__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
+		__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();  
+        __NOP();__NOP();__NOP();__NOP(); 
+    }  
+}
+void delay_ms(uint32_t nTimer)  
+{  
+    uint32_t i=1000*nTimer;  
+    delay_US(i);  
+}  
 void delay_us(uint32_t cnt)
 {
 #define SYSTEM_CLOCK_MHZ 62.4
@@ -433,7 +450,19 @@
     __asm volatile(".syntax divided\n");
 #endif
 }
-
+//void delay_us(uint32_t nTimer)  
+//{  
+//    uint32_t i=0;  
+//    for(i=0;i<nTimer;i++){  
+//        __NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
+//		__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
+//		__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();  
+//        __NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
+//		__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();
+//		__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();  
+//        __NOP();__NOP();__NOP();__NOP(); 
+//    }  
+//}
 uint8_t count_bits(uint32_t value)
 {
     uint8_t count = 0;

--
Gitblit v1.9.3