I have found /sys/bus/spi/drivers/lis302dl/spi3.0/wakeup_threshold /sys/bus/spi/drivers/lis302dl/spi3.0/uevent hooks can you please help me to use that ?
On 23 February 2010 15:32, Abhishek Bajpai <[email protected]> wrote: > Thanks Neil > > Actually I want to have this threshold interrupt as a signal to my > application ( user land ). > Is there any functional code available demonstrating this functionality. > > Thanks Again > > > On 23 February 2010 15:15, Neil Brown <[email protected]> wrote: > >> On Tue, 23 Feb 2010 14:41:43 +0530 >> Abhishek Bajpai <[email protected]> wrote: >> >> > I am working on a project where I want to use hand gesture to wake up >> the >> > device. >> > Is it possible to generate signals/interrupts from the accelerometer in >> > openmoko?? >> > >> >> Yes. >> The current code programs it to generate an interrupt on every sample - >> either 100HZ or 400HZ. I posted some code a while back which makes this >> much >> more flexible, and it will instead generate an interrupt only when there >> is a >> change of a certain magnitude. >> >> See >> >> http://lists.openmoko.org/pipermail/openmoko-kernel/2009-November/010672.html >> >> and following. >> >> Is that what you wanted, or something else? >> >> NeilBrown >> >> > > > -- > " Even The word Impossible says I M Possible" > -- " Even The word Impossible says I M Possible"
