串口驱动提交
authorp15692025051 <846603105@qq.com>
Mon, 15 Jan 2024 09:26:51 +0000 (17:26 +0800)
committerp15692025051 <846603105@qq.com>
Mon, 15 Jan 2024 09:26:51 +0000 (17:26 +0800)
2.sdk/sdk/product/craneg_modem/hal/gps_device/src/gps_uart.c

index 518327e..16ca3c4 100644 (file)
@@ -1153,7 +1153,13 @@ void uart3_debug(void)
     gps_uart_clear_receive_fifo(uart3_port.port_id);
        DEBUG("uart3_debug%d\n", gps_uart_id);
 }
-
+#include "IMEI.h"
+void u_get_imei(char *imei)
+{
+       IMEIStr imeiStr;
+    IMEIReadStr(&imeiStr);
+    strncpy(imei,imeiStr.imei_digits,16);
+}
 void uart4_debug(void)
 {
     gps_uart_id = GPS_UART4_ID;