press_down_detect.h 544 B

123456789101112131415161718192021222324252627
  1. #ifndef __press_down_detect_h__
  2. #define __press_down_detect_h__
  3. #include "main.h"
  4. extern void gpio_mt_run(uint32_t tim);
  5. #define PRESS_LEGTH 15
  6. #define DETECT_DOWN_SIZE 2
  7. #define PRESS_COUNT_MAX 30
  8. #define TIME_INTERVAL 15
  9. #define PRESS_INTER 250000
  10. //#define LEFT_PRESS_LOW 10400000
  11. //#define RIGHT_PRESS_LOW 10050000
  12. #define LEFT_PRESS_LOW 9860000
  13. #define RIGHT_PRESS_LOW 10570000
  14. short press_jump_detect(short*, short*);
  15. int press_down_detect_new(int index, int left_press, int right_press, int left_high, int right_high);
  16. #endif