From d14dd3a2106de793fbe08dc5a12cf80defd3258a Mon Sep 17 00:00:00 2001
From: jinlicong <493886250@qq.com>
Date: Wed, 15 May 2024 17:34:14 +0800
Subject: [PATCH] 继续脉冲和报警线处理
---
CORE/main.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/CORE/main.c b/CORE/main.c
index c0a4f93..ad70350 100644
--- a/CORE/main.c
+++ b/CORE/main.c
@@ -22,6 +22,7 @@
#include "sizhu_ctrl_word.h"
#include "sizhu_history_record.h"
#include "power_manage.h"
+#include "pulse_and_alarm_line.h"
@@ -68,6 +69,9 @@
/*�������*/
upperComPro();
+ /*�Խ��豸����״̬���*/
+
+
/*�ɼ����ϱ��������������*/
//?���߲�ͬʱ���У��ɼ������ϱ�֮ǰ��ͬʱ�����Ļ����Ȳɼ���
@@ -76,6 +80,9 @@
/*485�ɼ�*/
rs485ReadDataPro(&sys_fun_run_ctrl_g);
+
+ /*���㣬�����������*/
+
/*������ʷ��¼�洢*/
//������ʷ��¼�洢��������ɼ��У����Ӻ�ȴ��ɼ�����ٴ洢
@@ -112,6 +119,16 @@
//��������²������ߣ�Ҫ���жϣ���������硢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;
+
+ }
+
+ //����
+ }
}
--
Gitblit v1.9.3