forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

jinlicong
2024-05-30 a1810b89e66f184c62a0588ae7d57c91d0c376e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _OTHER_FUN_H_
#define _OTHER_FUN_H_
 
#include "define_all.h" 
 
 
/****ÆäËûÁãÉ¢¹¦ÄÜ·ÅÔÚÕâÀï´¦Àí****/
 
//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
 
#define    UNCAP_IO_READ    GPIO_ReadInputDataBit(UNCAP_PORT, UNCAP_PIN)
 
 
//´Å¸ÉÈżì²â
#define MAGNETIC_INTERFERENCE_PORT     GPIOG
#define MAGNETIC_INTERFERENCE_PIN     GPIO_Pin_7
 
#define    MAGNETIC_INTERFERENCE_IO_READ    GPIO_ReadInputDataBit(MAGNETIC_INTERFERENCE_PORT, MAGNETIC_INTERFERENCE_PIN)
 
 
void led_init(void);
void OtherFunPro(void);
 
 
 
#endif