Nick Garnett schrieb:
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:

This patch fixes a small issue with the SysTick reload value (this has
to be period - 1) and fixed wrap-around in the hal_delay_us() function.

The -1 on the period is OK.

Fine.

However, I don't see the point in the change to HAL_DELAY_US(). As far
as I can tell it has exactly the same effect, or am I missing
something?

Do a series on paper, it's not the same. When the wrap around occures, you will add to the us counter. The 100ms delay on a redboot reboot never returned. With this fix, it actually takes 100ms :)

Simon

Reply via email to