123456789101112131415161718192021222324252627 |
- #ifndef __press_down_detect_h__
- #define __press_down_detect_h__
- #include "main.h"
- extern void gpio_mt_run(uint32_t tim);
- #define PRESS_LEGTH 15
- #define DETECT_DOWN_SIZE 2
- #define PRESS_COUNT_MAX 30
- #define TIME_INTERVAL 15
- #define PRESS_INTER 250000
- //#define LEFT_PRESS_LOW 10400000
- //#define RIGHT_PRESS_LOW 10050000
- #define LEFT_PRESS_LOW 9860000
- #define RIGHT_PRESS_LOW 10570000
- short press_jump_detect(short*, short*);
- int press_down_detect_new(int index, int left_press, int right_press, int left_high, int right_high);
- #endif
|