================================================================================
                                样例使用说明
                                Sample Description
================================================================================
功能描述：
此样例演示了TIM1的PWM信号输入捕获功能，配置PA5作为输入捕获引脚，同时将信号传到通
道1和通道2，其中通道1检测信号的上升沿，通道2检测信号的下降沿，上升沿同时作为CNT复
位清零的触发信号。上升沿和下降沿触发记录到CCR1和CCR2中的CNT的值经过计算后得出信号
的频率和占空比会通过Frequency和DutyCycle两变量展现出来。

Function descriptions:
This sample demonstrates the PWM signal input capture function of TIM1,
configuring PA5 as the input capture pin, and transmitting the signal to
channel 1 and channel 2 at the same time, in which channel 1 detects the rising
edge of the signal, and channel 2 detects the falling edge of the signal, and
the rising edge is used as the trigger signal for the reset and clearing of the
CNT at the same time. The rising and falling edge triggers are recorded into CCR1
and CCR2 and the value of CNT is calculated to get the frequency and duty cycle
of the signal which will be shown by the two variables Frequency and DutyCycle.
================================================================================
测试环境：
测试用板：MS32C001B_STK
MDK版本： 5.28
IAR版本： 9.20
GCC 版本：GNU Arm Embedded Toolchain 10.3-2021.10

Test environment:
Test board: MS32C001B_STK
MDK Version: 5.28
IAR Version: 9.20
GCC Version: GNU Arm Embedded Toolchain 10.3-2021.10
================================================================================
使用步骤：
1. 编译下载程序到MCU，并运行
2. 输入PWM信号到PA5，进入调试模式下，可以在watch窗口中看到Frequency和DutyCycle两变量
的值

Example execution steps:
1.Compile and download the program to MCU and run it
2.Input PWM signal to PA5, enter debug mode, you can see the value of Frequency and
DutyCycle variables in the watch window.
================================================================================
注意事项：
根据用户自己输入信号的频率，可能需要相应的改变时基单元中的预分频系数

Notes:
Depending on the frequency of the user's own input signal, it may be necessary to
change the prescaler coefficients in the time base unit accordingly
================================================================================