From a1810b89e66f184c62a0588ae7d57c91d0c376e8 Mon Sep 17 00:00:00 2001
From: jinlicong <493886250@qq.com>
Date: Thu, 30 May 2024 20:06:09 +0800
Subject: [PATCH] 继续测试修改

---
 CORE/main.c |   67 +++++++++++++++++----------------
 1 files changed, 34 insertions(+), 33 deletions(-)

diff --git a/CORE/main.c b/CORE/main.c
index 9dce0d5..2f41e49 100644
--- a/CORE/main.c
+++ b/CORE/main.c
@@ -26,6 +26,7 @@
 #include "billing.h"
 #include "linked_list.h"
 #include "other_fun.h"
+#include "sys_sleep.h"
 
 
 FlagStatus key_awaken_flag_g = RESET;
@@ -35,7 +36,7 @@
 int main(void)
 {
 	System_power_on_init();
-
+	
 	/*���ֳ�ʼ��*/
 	//Ӳ��������ʼ��
 	hardwareDriversInit();
@@ -48,13 +49,16 @@
 	allExtiIRQ();
 	
 	IWDT_Clr();
+	
+	lcdDisplayPro();  //��λ��ʾ�ȴ�
+	
 	while(1)
-	{
+	{		
 		if(sys_run_period==SET) 
 		{
 			sys_run_period = RESET;
 			IWDT_Clr();
-			
+
 			if(Get_Extern_Rtc_Time(&sys_clockBCD_g) ==FAIL) //��ȡʱ��
 			{
 				//?RTCʱ���쳣����
@@ -81,8 +85,8 @@
 			//���������ϱ��ж��߼����ڲɼ�ǰ�棬�ȴ����ɼ����ٴ����ϱ�
 			sysRunFunCtrlPro(&sys_fun_run_ctrl_g,sys_clockBCD_g);
 			
-			/*485�ɼ�*/
-			rs485ReadDataPro(&sys_fun_run_ctrl_g);
+//			/*485�ɼ�*/
+////			rs485ReadDataPro(&sys_fun_run_ctrl_g);
 			
 			/*���㣬�����������*/
 			SettlementPro();
@@ -105,36 +109,33 @@
 			SysAlarmCtrlPro();
 			
 			
-			/*����������ͨѶ��Ԥ��*/
-			
-			
-			/*˼��ƽ̨����ͨѶ*/
-			WirelessRemoteCommPro(&sys_fun_run_ctrl_g);
-			
-			/*modbus��ַ�����ݸ���*/
-			
-			
-			
-			/*����*/ 
-			//��������²������ߣ�Ҫ���жϣ��������⹩�硢RS485�ɼ������С�Զ��������
-			if(SysKeepRunningStatusGet(sys_fun_run_ctrl_g)==RESET){
-				//���ߴ���
-				if(pulse_exti_flag==SET){ //�ȴ����������
-					for(uint8_t count_i=0;count_i<(PULSE_CHECK_DELAY_MS &0xff);count_i++){
-						delay_ms(1);
-						if(pulse_exti_flag == RESET) 
-							break;						
-					}				
-				}
-				//����
-				
-				
-			}
-				
-			
+//			/*����������ͨѶ��Ԥ��*/
+//			
+//			
+//			/*˼��ƽ̨����ͨѶ*/
+////			WirelessRemoteCommPro(&sys_fun_run_ctrl_g);
+//			
+//			/*modbus��ַ�����ݸ���*/
+//			
+//			
+//			
+//			/*����*/ 
+//			//��������²������ߣ�Ҫ���жϣ��������⹩�硢RS485�ɼ������С�Զ��������
+//			if(SysKeepRunningStatusGet(sys_fun_run_ctrl_g)==RESET){
+//				//���ߴ���
+//				if(pulse_exti_flag==SET){ //�ȴ����������
+//					for(uint8_t count_i=0;count_i<(PULSE_CHECK_DELAY_MS &0xff);count_i++){
+//						delay_ms(1);
+//						if(pulse_exti_flag == RESET) 
+//							break;						
+//					}				
+//				}
+//				//����
+//				DeepSleepMode();
+//			}
 		}
 		
-		if(lcd_wake_up_flag_g)  //Ϊ�˰�����ʾû���ӳٸ�
+		if(lcd_wake_up_flag_g == SET)  //Ϊ�˰�����ʾû���ӳٸ�
 			lcdDisplayPro();
 		
 	}

--
Gitblit v1.9.3