================================================================================
                                样例使用说明
                                Sample Description
================================================================================
功能描述：
此样例演示了TIM1的编码器接口功能，配置PA3和PA5作为编码信号的输入引脚，根据PA3和
PA5输入信号的边沿和电平会对计数方向（CR1寄存器中的DIR位），计数器值（CNT寄存器）
做出相应的改变。

Function descriptions:
This sample demonstrates the encoder interface function of TIM1. PA3 and PA5 are
configured as the input pins for encoding signals, and according to the edges
and levels of the input signals of PA3 and PA5, the counting direction (DIR bit
in the CR1 register) and the counter value (CNT register) will be changed
accordingly.
================================================================================
测试环境：
测试用板：MS32C001_STK
MDK版本： 5.28

Test environment:
Test board: MS32C001_STK
MDK Version: 5.28
================================================================================
使用步骤：
1. 编译下载程序到MCU，并运行
2. 给PA3和PA5输入编码信号，进入调试模式，可以在watch1窗口中观察dir和cnt两变量的
值，其中dir变量表示计数方向，0代表向上计数，1代表向下计数，cnt变量的值是当前CNT
寄存器中的计数值。

Example execution steps:
1.Compile and download the program to MCU and run it
2.Input the encoding signals to PA3 and PA5 and enter the debugging mode, you can
observe the values of the dir and cnt variables in the watch1 window, where the
dir variable indicates the counting direction, with 0 representing the upward
counting and 1 representing the downward counting, and the value of the cnt
variable is the current counting value in the CNT registers.
================================================================================
注意事项：

Notes:

================================================================================