This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: QUESTION - generic flash usage
- From: Gary Thomas <gary at chez-thomas dot org>
- To: Jani Monoses <jani at iv dot ro>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 24 Jul 2002 07:11:37 -0600
- Subject: Re: [ECOS] QUESTION - generic flash usage
- References: <20020724140524.1cbc68e1.jani@iv.ro>
On Wed, 2002-07-24 at 08:05, Jani Monoses wrote:
> Hi
> is one of the two ways of using generic flash drivers preferred?
> 1) having a src/flashXXX.c which includes the generic .inl file (ex. viper)
> 2) having a include/flashXXX.inl which does the same (ex. cerfpda)
>
> 1) is compiled and linked while 2) is itself included ....
by the generic driver which does the same thing.
These are just two different ways of viewing the same process - namely
to instantiate a specific driver from a generic framework given some
parameterization. They are pretty much the same (in my opinion) and
simply reflect the different author's attitudes when the code was
written.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss