ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: MAX197 ADC interfacing

To:
Subject: Re: [ts-7000] Re: MAX197 ADC interfacing
From: anand bhavnani <>
Date: Fri, 10 Feb 2006 03:20:18 -0800 (PST)
Hello 

I am using Scratchbox environment for cross compling
for TS-7250.

I 'maked' your project after making all the relevant
changes in the Makefile


But still I got the following errors. 

/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/linux/mm.h:349:
error: `PAGE_OFFSET' undeclared (first use in this
function)
In file included from adc_main.c:13:
adc_kernel.h: At top level:
adc_kernel.h:94: error: parse error before
"devfs_handle_t"
adc_kernel.h:94: warning: no semicolon at end of
struct or union
adc_kernel.h:116: error: parse error before '}' token
adc_kernel.h:116: warning: type defaults to `int' in
declaration of `TDeviceData'
adc_kernel.h:116: warning: data definition has no type
or storage class
adc_kernel.h:122: error: parse error before '*' token
adc_kernel.h:122: warning: type defaults to `int' in
declaration of `adc_data'
adc_kernel.h:122: warning: data definition has no type
or storage class
adc_kernel.h:153: error: parse error before '*' token
adc_main.c:43: error: parse error before '*' token
adc_main.c:43: warning: type defaults to `int' in
declaration of `adc_data'
adc_main.c:43: warning: data definition has no type or
storage class
adc_main.c: In function `adc_init':
adc_main.c:74: error: request for member
`bDeviceRegistered' in something not a structure or
union
adc_main.c:75: error: request for member
`iNumChannelsActive' in something not a structure or
union
adc_main.c:76: error: request for member
`eSampleMethod' in something not a structure or union
adc_main.c:77: error: request for member
`eTimerMethod' in something not a structure or union
adc_main.c:78: error: request for member `iSampleFreq'
in something not a structure or union
adc_main.c:79: error: request for member
`iSampleInterval' in something not a structure or
union
adc_main.c:84: error: request for member `pChannels'
in something not a structure or union
adc_main.c:85: error: request for member `pChannels'
in something not a structure or union
adc_main.c:86: error: request for member `pChannels'
in something not a structure or union
adc_main.c:89: error: request for member `sSem' in
something not a structure or union
adc_main.c:119: error: request for member
`bDeviceRegistered' in something not a structure or
union
adc_main.c: In function `adc_cleanup':
adc_main.c:143: error: request for member
`bDeviceRegistered' in something not a structure or
union
make: *** [obj/adc_main.o] Error 1

Since the errors are directly in your code. I thought
better to ask u instead of debugging myself.
Kindly look in the matter and reply soon.

Thank You
Anand




--- Phil <> wrote:

> 
> I have uploaded my ADC driver to the files section
> of the group.
> 
> As this is the first time I have contributed to the
> group I would 
> appreciate if you could give me any feedback, good
> or bad, if you 
> try it.
> 
> Also, if you have any questions at all, please let
> me know.
> 
> Cheers
> Phil
> 
> 
> 
> --- In  "Phil"
> <> wrote:
> >
> > 
> > Using one of the spare EP930x timers, I am
> actually getting quite 
> > reliable and accurate timing for sampling signals
> at a rate of 
> > ~5.3kS/s. Also, although I haven't had a chance to
> test, I am 
> hoping 
> > that I will be able to do this across multiple
> channels (up to 6 
> > channels, giving ~32kS/s total).
> > 
> > Which reminds me, I was going to see if anyone was
> interested in 
> the 
> > drivers that I have written for ADC sampling?
> Probably not 
> terribly 
> > robust yet, since I only have the one board to
> play with at the 
> > moment, but could be useful nonetheless. Let me
> know if you are 
> and 
> > I will post them.
> > 
> > Cheers
> > Phil
> > 
> > 
> > --- In  Jim Jackson <jj@>
> wrote:
> > >
> > > 
> > > On Wed, 8 Feb 2006, Phil wrote:
> > > > --- In  "ajbanand"
> <ajbanand@> wrote:
> > > > >
> > > > > Hi all,
> > > > >
> > > > > i have TS-7250 with MAX197 ADC.
> > > > > i am trying to provide voice support to my
> board using the 
> ADC.
> > > > > i have configured my ADC for single channel
> usage..
> > > > > its not giving proper digital values for the
> analog input, i 
> am
> > > > getting
> > > > > value like 0,5,17 etc all less than 100. for
> bipolar -5 tp 
> +5 
> > range
> > > > > these values all seem to be noise..
> > > > > can anyone please explain what could be
> wrong in my 
> approach...
> > > >
> > > > If you reply with the code that you are using,
> you will get a 
> > better
> > > > response from the members of this group.
> Without it, we can't 
> > really
> > > > help.
> > > >
> > > 
> > > Also it would be of use to know the circuit
> schematic for the 
> > electronics
> > > feeding the input.
> > > 
> > > However having said that, I can't see how you
> can reliably use 
> the 
> > MAX197
> > > for sampling voice or anyother signal > half the
> the Kernel HZ 
> > value.
> > > Timing for the sampes will not be accurate
> enough, even though 
> > sampling
> > > one input only, one can get sampling rates of
> upto 50K 
> samples/sec 
> > (If my
> > > memory if correct).
> > > 
> > > Jim
> > >
> >
> 
> 
> 
> 
> 
> 


"Stay HUNGRY. Stay FOOLISH." Steve Jobs

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU