This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: Conditional define of HAL_DELAY_US in Cortex-M architecture HAL
- From: Gary Thomas <gary at mlbassoc dot com>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Wed, 15 Dec 2010 08:57:33 -0700
- Subject: Re: Conditional define of HAL_DELAY_US in Cortex-M architecture HAL
- References: <4D08BE09.1000406@siva.com.mk>
On 12/15/2010 06:09 AM, Ilija Kocho wrote:
Hello
This is a small patch that enables redefinition of HAL_DELAY_US at
variant or platform level.
An example use case is substitution of hal_delay_us() with "equivalent"
that provides sub microsecond polling (for devices that require low
latency response).
Just curious; what good does "sub microsecond polling" do when
this function defines the delay in microseconds??
Note: I don't have a problem with the concept as in most cases
the ability to provide architecture/family/target overrides is
considered useful.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------