HiUmamahesh
suggest to look at accelerometer_test.c in SDK :
i.MX 6Series Platform SDK
: Bare-metal SDK
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------