Hi, all
i'm used linux 14.04.5 and kernel 3.0.35-4.1.0+yocto+gbdde708.
My board is connected to the GPS PPS signal line and CSI0_DAT6.
I want to generate an interrupt when a signal is received.
what should I do?
menuconfig? board-mx6q_sabresd.c or board-mx6q_sabresd.h edit?
please, Tell me...
Sorry. I can not speak English well. I hope you understand.
Hi jun
one can look at below thread
Proper GPIO interrupt handling in iMX6
various examples, like configuring touch interrupt can be found in
linux/../mach-mx6/board-mx6q_sabresd.c
Linux-3.0.35_4.1.0
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks, igor.
But I hope to have a more detailed explanation.
I want to interrupt the signal that occurs once a second, and to count the sysclk between the signals.
I downloaded the package(https://www.nxp.com/webapp/Download?colCode=L3.0.35_4.1.0_ER_SOURCE_BSP&appType=license&loca...) but it did not help. I even had it already.
Is there any other way? I want you to remember that I am a beginner.
Hi jun
for beginners suggest to start with linux tutorial:
Linux Device Drivers, Third Edition [LWN.net]
Best regards
igor
Hi, igor
I modified the source code to use "CSI0_DAT6" as the GPIO pin.
arm/mach-mx6/board-mx6q_sabresd.h
arm/mach-mx6/board-mx6q_sabresd.c
I added the code.
Is that right?
If so, what should we do next?