From fa6053f85287163f6e2d5dba690bec05cbc95f4a Mon Sep 17 00:00:00 2001
From: jinlicong <493886250@qq.com>
Date: Fri, 07 Jun 2024 17:00:49 +0800
Subject: [PATCH] 增加阀控事件记录及修改阀控命令
---
Function/OTHER_FUN/other_fun.c | 30 +++++++++++++++++++++++++++++-
1 files changed, 29 insertions(+), 1 deletions(-)
diff --git a/Function/OTHER_FUN/other_fun.c b/Function/OTHER_FUN/other_fun.c
index 418362f..8ea9616 100644
--- a/Function/OTHER_FUN/other_fun.c
+++ b/Function/OTHER_FUN/other_fun.c
@@ -1,6 +1,27 @@
#include "other_fun.h"
#include "gpio.h"
#include "linked_list.h"
+#include "main.h"
+#include "sizhu_alarm_record.h"
+
+
+
+
+
+void led_init(void)
+{
+ CMU_PERCLK_SetableEx(PADCLK, ENABLE); //PADʱ�ӣ�GPIO��ʹ�ܺ���
+
+ OutputIO(GPIOD,GPIO_Pin_8,OUT_PUSHPULL);
+}
+
+void led_Close(void)
+{
+ CloseIO(GPIOD,GPIO_Pin_8);
+}
+
+
+
void UNCAP_GPIO_Clk_Init(void)
{
@@ -67,9 +88,16 @@
//ϵͳ������ɢС���ܴ���
void OtherFunPro(void)
{
+ #ifdef LED_TEST
+ led_init();
+ LED_TOG;
+ #else
+ led_Close();
+ #endif
+
UncapCheck(); //���Ǽ��
MagneticInterferenceCheck(); //�Ÿ��ż��
-}
\ No newline at end of file
+}
--
Gitblit v1.9.3