Repository navigation
fix #2071 add support for max overflow value for 32 bits timer - #2072
GianfrancoIU1JSU wants to merge 3 commits into
Conversation
|
Hi @GianfrancoIU1JSU |
|
Hi @fpistm
in teory the only place where a it can trigger a warning is on the return value of the
Check should be done if
I've already done that in this PR be7e127
this modification does not break existing code.
if you agree I can make the corrections and remake the PR |
|
Hi @GianfrancoIU1JSU https://github.com/stm32duino/Arduino_Core_STM32/wiki/HardwareTimer-library#1-introduction
So even if this PR allow you to use max 32 bits values, it is not enough to support properly 32 bits timers as some side effects can occurs. |
Summary
the following fixes #2071 in the way proposed in the issue itself.
this will now allow to set the 32bit HW timers overflow to the full value.
the
getOverflow()function was also modified to accomodate the new value.this will not cause problems with existing code since they are using values castable in
uint32_tThis PR fixes the following bug
#2071
Validation
the modification was tested and work as expected
testing code present in #2071