press_down_detect.h 621 B

12345678910111213141516171819202122232425262728293031323334
  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 20
  8. #define TIME_INTERVAL 10
  9. #if GIRL_SHOES == 1
  10. #define PRESS_INTER 150000
  11. #else
  12. #define PRESS_INTER 330000
  13. #endif
  14. //#define LEFT_PRESS_LOW 10400000
  15. //#define RIGHT_PRESS_LOW 10050000
  16. #define LEFT_PRESS_LOW 9860000
  17. #define RIGHT_PRESS_LOW 10570000
  18. short press_jump_detect(short*, short*);
  19. int press_down_detect_new(int index, int left_press, int right_press, int left_high, int right_high, float acc);
  20. #endif