This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ADC - No init


Is there any way to take a look at the hooked ISR and/or DSR routines?

Regards,

Peter



----- Original Message ----
> From: Andrew Lunn <andrew@lunn.ch>
> To: Peter Huszar <duci750@yahoo.com>
> Cc: eCOS <ecos-discuss@ecos.sourceware.org>
> Sent: Thursday, January 1, 2009 6:25:53 PM
> Subject: Re: [ECOS] ADC - No init
> 
> On Thu, Jan 01, 2009 at 09:01:49AM -0800, Peter Huszar wrote:
> > 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.
> 
> It should be called as part of
> packages/io/common/current/src/iosys.c:cyg_io_init()
> 
> You might want to enable CYGDBG_IO_INIT so you can see what devices
> init function get called. Check the device is even on the list.
> 
>      Andrew



      


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]