This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: cortexm fix rtc
- From: Simon Kallweit <simon dot kallweit at intefo dot ch>
- To: Nick Garnett <nickg at ecoscentric dot com>
- Cc: ecos-patches at ecos dot sourceware dot org
- Date: Tue, 04 Nov 2008 19:52:22 +0100
- Subject: Re: cortexm fix rtc
- References: <49107011.7060704@intefo.ch> <m3d4hbbbbr.fsf@xl5.calivar.com>
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