mirror of
https://github.com/goldenfishs/MRobot.git
synced 2025-06-14 22:16:38 +08:00
22 lines
604 B
C
22 lines
604 B
C
#ifndef KEY_GPIO_H
|
||
#define KEY_GPIO_H
|
||
/* Includes ----------------------------------------------------------------- */
|
||
#include <stdint.h>
|
||
#include "main.h"
|
||
|
||
/* Exported constants ------------------------------------------------------- */
|
||
/* Exported macro ----------------------------------------------------------- */
|
||
/* Exported types ----------------------------------------------------------- */
|
||
|
||
///* KEY按键状态,设置用 */
|
||
typedef enum
|
||
{
|
||
DEVICE_KEY_RELEASED, //按键释放
|
||
DEVICE_KEY_PRESSED, //按键按下
|
||
} DEVICE_KEY_Status_t;
|
||
|
||
void KEY_Process(void);
|
||
uint8_t KEY_Get_State(void);
|
||
|
||
#endif
|