Re: Accelerometer, Gyros and ADC's etc within the kernel.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Brownell
Date: Wednesday, May 21, 2008 - 5:53 pm

On Tuesday 20 May 2008, mark gross wrote:

Jonathan neglected to mention that he's already sent a driver
for this to the SPI list.  ;)

Which is part of the reason for asking this question.  Right
now that driver sits in drivers/spi/lis3l02dq.c but that is
probably not its best long-term domicile.



I guess I don't follow.  The SPI framework handles all that
stuff already, even if you're bitbanging.  Though to be
sure, if you're bitbanging SPI you want your platform to
be able to inline those GPIO calls so those inner loops
only take a few instructions per bit ... also solved!  :)



True.  I imagine a few other such issues will appear once
more folk than Jonathan are using these sorts of sensors
on Linux.  I'd expect the sample stream to have internal
timestamps for truly critical systems, unless variability
in when the host makes timestamps is not really an issue.
 


Midpoint?  That's not one I've come across before.  All four
standard SPI clock/sample/shift modes are already supported
in the SPI framework though.  Ditto active-high chipselects
(vs normal active-low) etc.

- Dave
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Accelerometer, Gyros and ADC's etc within the kernel., Jonathan Cameron, (Tue May 20, 3:04 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., Jonathan Cameron, (Wed May 21, 3:04 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., Dmitry Torokhov, (Wed May 21, 6:49 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., Henrique de Moraes H ..., (Wed May 21, 7:09 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., David Brownell, (Wed May 21, 5:52 pm)
Re: Accelerometer, Gyros and ADC's etc within the kernel., David Brownell, (Wed May 21, 5:53 pm)
Re: [spi-devel-general] Accelerometer, Gyros and ADC's etc ..., Jonathan Cameron, (Tue May 27, 10:59 am)
Re: [spi-devel-general] Accelerometer, Gyros and ADC's etc ..., Jonathan Cameron, (Tue May 27, 11:00 am)
Re: Accelerometer, Gyros and ADC's etc within the kernel., David Brownell, (Tue May 27, 4:42 pm)
Re: Accelerometer etc subsystem (Update on progress), Jonathan Cameron, (Thu Jun 26, 11:01 am)
Re: Accelerometer etc subsystem (Update on progress), Jonathan Cameron, (Thu Jun 26, 11:26 am)
Re: Accelerometer etc subsystem (Update on progress), Randy Dunlap, (Thu Jun 26, 7:39 pm)
Re: Accelerometer etc subsystem (Update on progress), Ben Nizette, (Thu Jun 26, 8:29 pm)