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

@@ -89,6 +89,12 @@ void system_delay_us(uint32 num)
}
}
uint64_t system_get_tick(void)
{
uint64_t time_temp = SysTick->CNT;
return (time_temp);
}
void system_delay_init(void)
{
SysTick->CTLR |= 0x21;