In shutdown function, ctrl0 register set as 0. This causes problem because it disables timer clock before the timer. Thats why cnt register starts counting in next timer initialization when clk_en_x field is enabled even en_x field read as 0. To fix this problem, called stop function before setting ctrl0 register to 0.
For these 2 programs, timer shutdown and reinitialize for each configuration. Output 1 is current revB driver's output and output 2 is updated version's output.
Checklist Before Requesting Review
[x] PR Title follows correct guidelines.
[x] Description of changes and all other relevant information.
[ ] (Optional) Link any related GitHub issues using a keyword
[x] (Optional) Provide info on any relevant functional testing/validation. For API changes or significant features, this is not optional.
Pull Request Template
Description
For these 2 programs, timer shutdown and reinitialize for each configuration. Output 1 is current revB driver's output and output 2 is updated version's output.
Checklist Before Requesting Review