You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
358 B

#ifndef __KEY_H
#define __KEY_H
#include "stm32f10x.h"
#define IN GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_8)//<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>0
#define OUT GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_9)//<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>1
#define IN_PRES 1 //KEY0<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define OUT_PRES 2 //KEY1<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void Key4x4_GPIO_Config(void);
u8 Key_Scan(void);
u8 KEY_Scan(u8); //<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɨ<EFBFBD><EFBFBD><EFBFBD>
#endif /* __KEY_H */