#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
|