[ECOS] difference between hal_diag and serial driver

Gary Thomas gary@mlbassoc.com
Thu Feb 17 15:28:00 GMT 2005


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



More information about the Ecos-discuss mailing list