STM32CubeMX-Keil_uVision5/exp4/Core/Inc/directkey.h

22 lines
247 B
C
Raw Normal View History

#ifndef __DIRECTKEY_H
#define __DIRECTKEY_H
#include<stdint.h>
enum {State0=0, State1, State2};
#define NoKey 0x0F
#define KeyPort GPIOC
#ifdef __cplusplus
extern "C" {
#endif
uint8_t ReadDirectKey(void);
#ifdef __cplusplus
}
#endif
#endif