--- In "j.chitte" <> wrote:
> I built Phils driver and it compiled without any messing. I
> compiled it native after setting the Makefile to use local gcc etc.
>
> insmod adc.o was clean although debug option did not spew the
> additional info I understood it should.
Glad to hear that all compiled ok. As for the debug option not
working, were you looking for the output on COM1, or whatever you
have the 'console' set to on the kernel command line? The debug
output won't appear on a SSH/telnet session.
> the devices apeared and setting sample rate to 4/s through /proc
was
> fine. However the actual data did not seem to bear much ralaton to
> the ADC pins.
I can't think of anything in particular that you may have done or
not done. It should be as simple as what you have detailed here. I
guess then that I have two questions:
1. What kernel version have you compiled this against? (It's a while
since I have used this much myself, but I believe I have compiled it
against -ts9 and -ts10 without problems). I see no reason why
everything would compile but not work functionally on other kernel
versions but it may help to check. Also, other users may be able to
confirm if the driver works against other kernel versions?
2. Are you able to vary the voltages on the pins as you are 'cat'ing
the /dev/adc* devices? Even if you can do something as simple as
connecting and disconnecting the voltage. What I am thinking is,
disregarding for the moment that the actual numbers may be wrong,
just confirm that if you are changing the voltage on the first
channel, that the numbers are changing when you 'cat' the first
device, etc. Also, that the numbers from the other channel devices
_DON'T_ change when you change the voltage on an unrelated channel.
Other than that, it seems a little strange, but hopefully we can
sort it all out for you.
> Thanks to Phil for the code.
No problem! :)
Cheers
Phil
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|