Interrupt/ signal from Accelerometer

Abhishek Bajpai abhisheietk at gmail.com
Tue Feb 23 11:42:27 CET 2010


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 <abhisheietk at gmail.com> 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 <neilb at suse.de> wrote:
>
>> On Tue, 23 Feb 2010 14:41:43 +0530
>> Abhishek Bajpai <abhisheietk at gmail.com> 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20100223/e5bbba50/attachment.htm 


More information about the openmoko-kernel mailing list