This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cortexm fix rtc


Nick Garnett schrieb:
"simon.kallweit@intefo.ch" <simon.kallweit@intefo.ch> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]