forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

wujiazhi
2024-06-13 72def895431ad7a08e635b11f3da738e2b2c4618
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
#ifndef _KEY_H_
#define _KEY_H_
 
#include "define_all.h" 
 
#define KEYA_S1_PORT     GPIOD                // Ô­ÀíͼKEYA °å×ÓS1  Èí¼þ¶¨ÒåA¼ü
#define KEYA_S1_PIN        GPIO_Pin_6
 
#define KEYB_S2_PORT     GPIOD                    // Ô­ÀíͼKEY1 °å×ÓS2  Èí¼þ¶¨ÒåB¼ü
#define KEYB_S2_PIN        GPIO_Pin_8
 
#define KEYC_S3_PORT     GPIOA                    // Ô­ÀíͼKEYC °å×ÓS3  Èí¼þ¶¨ÒåC¼ü
#define KEYC_S3_PIN        GPIO_Pin_0
 
#define KEY_A_READ        GPIO_ReadInputDataBit(KEYA_S1_PORT,KEYA_S1_PIN)
 
#define KEY_B_READ        GPIO_ReadInputDataBit(KEYB_S2_PORT,KEYB_S2_PIN)
 
#define KEY_C_READ        GPIO_ReadInputDataBit(KEYC_S3_PORT,KEYC_S3_PIN)
 
 
extern FlagStatus key_awaken_flag_g;
 
void KEY_IO_Init(void);
 
void Key_Config_Init(void);
void CalMode_Exit_A_LongHandler(void);
 
 
#endif