This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
ADC - No init
- From: Peter Huszar <duci750 at yahoo dot com>
- To: eCOS <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 1 Jan 2009 09:01:49 -0800 (PST)
- Subject: [ECOS] ADC - No init
First of all Happy New Year to all of you.
I have been doing some work with the ADC driver of the LPC2xxx family.
I might have misunderstood the concept of the DEVTAB, but since it requires
the entry point of the init() function in the device driver code, I assumed it will be called.
I have traced with the debugger, but the init() of the device driver does not seem to
be called between cyg_io_lookup() and cyg_io_read() calls from the user code.
Of course the lookup() functions in the device driver could also be used to do the
initialization, but I would like to know if this is the way to do it, or I should look for
some trouble elsewhere. Also since the init() function pointed to by DEVTAB is
responsible for calling the generic device inti function cyg_adc_device_init()
I assumed it would be called.
Please let me know where my thoughts err.
Regards,
Peter
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss