stm32-code/stm32f0_clock/Bsp/Inc/bsp_key.h

20 lines
374 B
C

#ifndef __BSP_KEY_H
#define __BSP_KEY_H
#include "main.h"
typedef enum {
bsp_key_none = 0x00,
bsp_key_up_short = 0x01,
bsp_key_ok_short = 0x02,
bsp_key_down_short = 0x04,
bsp_key_up_long = 0x10,
bsp_key_ok_long = 0x20,
bsp_key_down_long = 0x40,
} bsp_key_event_e;
void bsp_key_init(void);
bsp_key_event_e bsp_key_get_event(void);
#endif