2021-08-04 10:46:24 +08:00
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __KEY_H
|
|
|
|
|
|
#define __KEY_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "sys.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define NO_KEY 0
|
|
|
|
|
|
#define KEY1 1
|
|
|
|
|
|
#define KEY2 2
|
2021-08-10 15:02:33 +08:00
|
|
|
|
#define KEY3 3
|
|
|
|
|
|
#define KEY4 4
|
2021-08-04 10:46:24 +08:00
|
|
|
|
|
|
|
|
|
|
#define KEY1_Val HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_3)
|
|
|
|
|
|
#define KEY2_Val HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_5)
|
|
|
|
|
|
|
|
|
|
|
|
void KEY_Init(void);
|
|
|
|
|
|
uint8_t KEY_GetKey(void);
|
|
|
|
|
|
uint8_t KEY_GetKeyWait(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|