This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: difference between hal_diag and serial driver
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Giuseppe Monteleone <info at ing-monteleone dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 17 Feb 2005 08:28:17 -0700
- Subject: Re: [ECOS] difference between hal_diag and serial driver
- Organization: MLB Associates
- References: <200502171522.j1HFMIN7019087@daitarn9.register.it>
On Thu, 2005-02-17 at 16:22 +0200, Giuseppe Monteleone wrote:
> Which is the difference between a standard serial device and
> hal_diag.c in hal subdirectory ?
The HAL diag functions are just that - for diagnostic output.
They are typically very rigid, polling only (interrupts disabled
while they run, etc).
The general purpose serial drivers provide the most flexibility.
They run using interrupts, are runtime configurable, support
multiple ports simultaneously, and map easily into standard
I/O support (open/fopen, write/fprintf, etc)
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss