《【STM32】通用定时器TIM(编码器接口)》正交编码器+编码器测速代码 ——来自博客 https://blog.csdn.net/m0_75090944/article/details/141753068