feat: 添加旋转编码器按键长短按功能

This commit is contained in:
2024-01-05 15:55:17 +08:00
parent b4b265cdef
commit 535cb372df
8 changed files with 75 additions and 38 deletions

View File

@@ -39,8 +39,12 @@
#include "zf_common_clock.h"
#include "zf_common_typedef.h"
#define LONG_PRESS_THRESHOLD_MS (300ULL)
#define LONG_PRESS_THRESHOLD_TICK (LONG_PRESS_THRESHOLD_MS * 18000ULL)
void system_delay_ms(uint32 time);
void system_delay_us(uint32 time);
uint64_t system_get_tick(void);
void system_delay_init(void);
#endif