Key.h 394 B

1234567891011121314151617181920
  1. #ifndef _KEY_H_
  2. #define _KEY_H_
  3. #include "gd32e230x_conf.h"
  4. #include "board_cfg.h"
  5. void InitKey(void);
  6. unsigned char ScanKey(unsigned int gpio_periph,unsigned int pin);
  7. unsigned char ReadKeyValue(void);
  8. #if SUPPORT_DETECTION
  9. unsigned char get_detection();
  10. #endif
  11. #endif