forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

jinlicong
2024-05-09 d6ce00f6b68d3d1ecaf44c972909f311ac1d3bf8
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 KEY1_PIN                                GPIO_Pin_5 //µçÔ´
#define KEY1_PORT                              GPIOE
 
#define KEY2_PIN                                GPIO_Pin_12  //ÏòÓÒ¼ü
#define KEY2_PORT                              GPIOF
 
#define KEY3_PIN                                GPIO_Pin_6 //Ïò×ó¼ü
#define KEY3_PORT                              GPIOE
 
#define KEY4_PIN                                GPIO_Pin_3
#define KEY4_PORT                              GPIOC
 
 
#define KEY1_IO_READ  GPIO_ReadInputDataBit(KEY1_PORT,KEY1_PIN)
#define KEY2_IO_READ  GPIO_ReadInputDataBit(KEY2_PORT,KEY2_PIN)
#define KEY3_IO_READ  GPIO_ReadInputDataBit(KEY3_PORT,KEY3_PIN)
#define    KEY4_IO_READ    GPIO_ReadInputDataBit(KEY4_PORT,KEY4_PIN)
 
void Key_GPIO_Init(void);
 
void keyPro(void);
 
 
#endif