mma8451 Driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mma8451 Driver

1,086 Views
deepanrajanbara
Contributor IV

Hi ,

We are currently working on MMA8451 module for our imx6 based custom board with Linux OS.The driver which is available in the default Kernel is currently in polling mode. how to convert the driver to interrupt based mode in the driver Please help as i am not able to find any method to convert the driver into interrupt based.

The driver file which i am using is in the following path /drivers/hwmon/mxc_mma8451.c .

Thank you,

Deepanraj.A

Labels (2)
0 Kudos
2 Replies

607 Views
igorpadykov
NXP Employee
NXP Employee

Hi Deepanraj

please look at example of such driver in

Device Drivers (9)
MMA845x Sensor Full Feature Linux Driver for Smart Devices (Rev1)(REV 1.0 )
https://www.nxp.com/products/sensors/motion-sensors/gyroscopes/nxp-sensor-drivers-for-android-linux-...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

607 Views
deepanrajanbara
Contributor IV

i have configured the interrupt in Kernel.But i am not able to get any interrupt from the accelerometer.

0 Kudos