From 2dfddbef297cad5a94c4dcb5a24f1043e69b9c14 Mon Sep 17 00:00:00 2001
From: Zhangwen <13970730+mkc46119@user.noreply.gitee.com>
Date: Wed, 19 Feb 2025 18:08:41 +0800
Subject: [PATCH] =?UTF-8?q?feature:1.=20=E4=B8=B2=E5=8F=A3=E6=8E=A5?=
=?UTF-8?q?=E6=94=B6=E6=95=B0=E6=8D=AE=E6=AD=A3=E5=B8=B8=202.=E8=AF=AD?=
=?UTF-8?q?=E9=9F=B3=E6=A8=A1=E5=9D=97=E6=B5=8B=E8=AF=95=E5=AE=8C=E6=88=90?=
=?UTF-8?q?=EF=BC=8C=E6=92=AD=E6=94=BE=E9=9F=B3=E9=A2=91=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E6=AD=A3=E5=B8=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.vscode/settings.json | 4 +-
keilp/cc_as_stc02_ps5ws.uvprojx | 34 +++++---
source/app/main.c | 134 ++++++++++----------------------
source/bsp/bsp_config.c | 3 +-
source/bsp/bsp_config.h | 5 +-
source/bsp/bsp_oid.c | 4 +-
source/ctask/time.c | 2 +-
source/msp/UART2.c | 4 +-
8 files changed, 76 insertions(+), 114 deletions(-)
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 4e8548f..2e93347 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -17,6 +17,8 @@
"eeprom.h": "c",
"uart2.h": "c",
"clib.h": "c",
- "uart0.h": "c"
+ "uart0.h": "c",
+ "stdio.h": "c",
+ "uart3.h": "c"
}
}
\ No newline at end of file
diff --git a/keilp/cc_as_stc02_ps5ws.uvprojx b/keilp/cc_as_stc02_ps5ws.uvprojx
index 8aceae2..c57fb76 100644
--- a/keilp/cc_as_stc02_ps5ws.uvprojx
+++ b/keilp/cc_as_stc02_ps5ws.uvprojx
@@ -444,34 +444,39 @@
msp
- time.c
+ eeprom.c
1
- ..\source\msp\time.c
+ ..\source\msp\eeprom.c
- eeprom.c
+ iic_sim.c
1
- ..\source\msp\eeprom.c
+ ..\source\msp\iic_sim.c
+
+
+ UART0.C
+ 1
+ ..\source\msp\UART0.C
- msp_uart2.C
+ UART2.c
1
- ..\source\msp\msp_uart2.C
+ ..\source\msp\UART2.c
- msp_uart0.C
+ UART3.c
1
- ..\source\msp\msp_uart0.C
+ ..\source\msp\UART3.c
- msp_uart_x.c
+ UART4.C
1
- ..\source\msp\msp_uart_x.c
+ ..\source\msp\UART4.C
- msp_uart3.c
+ UARTX.c
1
- ..\source\msp\msp_uart3.c
+ ..\source\msp\UARTX.c
@@ -498,6 +503,11 @@
1
..\source\ctask\tick.c
+
+ time.c
+ 1
+ ..\source\ctask\time.c
+
diff --git a/source/app/main.c b/source/app/main.c
index 51a9a95..b75d432 100644
--- a/source/app/main.c
+++ b/source/app/main.c
@@ -1,70 +1,3 @@
-//////////////////////////////////////////////////////////////////////////
-/// COPYRIGHT NOTICE
-/// Copyright (c) 2015, 传控科技
-/// All rights reserved.
-///
-/// @file main.c
-/// @brief main app
-///
-///(本文件实现的功能的详述)
-///
-/// @version 1.1 CCsens technology
-/// @author CC
-/// @date 20150102
-/// @note
-///
-/// @version 1.2 CCsens technology
-/// @author CC
-/// @date 20180903
-/// @note cc_gsm_PD03SM_vh03_m10_debug01
-//20160413 CC-ACC-VH02
-//20170111 CC-ls_02
-//
-//20170608 cc_as_stc01_main
-//
-//20180903 cc_gsm_PD03SM_vh03_m10_debug01
-//
-//
-/// @version 1.3 CCsens technology
-/// @author CC
-/// @date 20180903
-/// @note add calibrationg function
-/// @version 1.4 CCsens technology
-/// @author CC
-/// @date 20190101
-/// @note add calibrationg function
-
-//////////////////////////////////////////////////////////////////////////
-
-
-/// 下面是一个含有两个参数的函数的注释说明(简述)
-///
-/// 这里写该函数的详述信息
-/// @param a 被测试的变量(param描述参数)
-/// @param s 指向描述测试信息的字符串
-/// @return 测试结果(return描述返回值)
-/// @see Test() (本函数参考其它的相关的函数,这里作一个链接)
-/// @note (note描述需要注意的问题)
-/************************************************
-stc5ac32s
-程序结构
-
-
-有动静
- 并且采集的值小于c200 设置采集间隔缩短
- 采集值 在 c200