Hi Anand,
There are two issues here, the error messages regarding my code
where due to me not detecting the presence of DEVFS entirely. This
is now fixed and 0.0.2 code is in the files section. This includes
some more doco on DEVFS issues in the README.
However, that won't be all of your problem I feel. From the first
line of the error message, it looks as though you aren't actually
using kernel __sources__ to compile this driver, only the system
includes.
As eluded to in the INSTALL file you need fully configured sources
to compile this driver. These can be obtained from
ftp://ftp.embeddedarm.com/linux or
http://www.embeddedarm.com/linux/ARM.htm depending on what version
kernel you are running. (try running 'uname -r' to find this)
Then you need to get the sources configured (you don't actually have
to 'make' the kernel, only configure it) with something like this..
tar zxvf linux24-ts8-kernelsource.tar.gz
cd linux24/
make ts7200_config
make oldconfig
Then point the LINUXDIR variable in adc's Makefile to the linux24
directory just extracted from the tar
(eg. /root/logger/ts_72x0/kernel_source/linux24)
Note to all: Something that I thought about after posting the driver
is the range that it is set to, at the moment it is +/- 10V. I will
look into an interface for changing this but in the meantime, if you
need to change this, edit adc_hwtimer.c looking for ADC_RANGE_10 and
ADC_BIPOLAR text. Change these to any combination of those or
ADC_RANGE_5 and ADC_UNIPOLAR as necessary;
Cheers
Phil
--- In anand bhavnani <> wrote:
>
> 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"
> > <mccarl1978@> 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/
|