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.h |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Function/OTHER_FUN/other_fun.h b/Function/OTHER_FUN/other_fun.h
index 7d8236f..040c055 100644
--- a/Function/OTHER_FUN/other_fun.h
+++ b/Function/OTHER_FUN/other_fun.h
@@ -6,6 +6,12 @@
 
 /****������ɢ���ܷ������ﴦ��****/
 
+//LED��
+#define LED_ON		GPIO_ResetBits(GPIOD,GPIO_Pin_8)
+#define LED_OFF		GPIO_SetBits(GPIOD,GPIO_Pin_8)
+#define LED_TOG		GPIO_ToggleBits(GPIOD,GPIO_Pin_8)
+
+
 //���Ǽ��
 #define UNCAP_PORT 	GPIOD
 #define UNCAP_PIN 	GPIO_Pin_1
@@ -20,9 +26,9 @@
 #define	MAGNETIC_INTERFERENCE_IO_READ	GPIO_ReadInputDataBit(MAGNETIC_INTERFERENCE_PORT, MAGNETIC_INTERFERENCE_PIN)
 
 
-
+void led_init(void);
 void OtherFunPro(void);
 
 
 
-#endif
\ No newline at end of file
+#endif

--
Gitblit v1.9.3