From 65062d0d5b21f838aa0043a15ce54cfab8d72c43 Mon Sep 17 00:00:00 2001
From: wujiazhi <1147861305@qq.com>
Date: Tue, 11 Jun 2024 14:23:53 +0800
Subject: [PATCH] 1.Fixed communication failure between MCU and wireless module 2.Fix the wrong judgment of alkaline lithium power

---
 Soft/test_log.h |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/Soft/test_log.h b/Soft/test_log.h
new file mode 100644
index 0000000..9ee7cef
--- /dev/null
+++ b/Soft/test_log.h
@@ -0,0 +1,32 @@
+#ifndef LOG_H
+#define LOG_H
+
+#include "define_all.h"  
+ 
+#ifdef __cplusplus
+extern "C" {
+#endif
+ 
+#define LOG_PRINT_OPEN 1
+
+#define LOG_BUF_SIZE 512
+ 
+typedef long long (*get_sys_time_ms_def)(void);
+ 
+enum log_debug_type
+{
+	DEBUG_NORMAL  = 0U,
+	DEBUG_WARNING,
+	DEBUG_ERROR
+};
+ 
+void log_print(enum log_debug_type color, const char *file, int line, const char *func, const char* fmt, ...);
+void log_time_register(get_sys_time_ms_def p_get_sys_time_ms);
+ 
+#define LOG_D(...) log_print(DEBUG_NORMAL, __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__)
+ 
+#ifdef __cplusplus
+}
+#endif
+
+#endif

--
Gitblit v1.9.3