From d352b1982dc9b4fb2135c64cd909bb9cecc62139 Mon Sep 17 00:00:00 2001 From: jinlicong <493886250@qq.com> Date: Fri, 14 Jun 2024 15:58:03 +0800 Subject: [PATCH] 添加.gitignore --- 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