GPT input capture in QT

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

GPT input capture in QT

853 Views
david_lim
Contributor I

I am using imx7d for my development and one of the motor speed frequency feedback by pulse is attached to gpt2.capture1.

In the imx7s.dtsi, the gpt2 is configured as below:

pastedImage_3.png

I have added the patchwork from the below link:

https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F917709... 

But the problem is, i do not know where should i use the mxc_request_input_capture.

I would want to configure these in QT and to be able to get the interrupt inside the QT.

But from the source from /opt/fslc-x11/2.5/environment-setup-armv7at2hf-neon-fslc-linux-gnueabi, inside doesn't have the required headers for me to do so in QT.

Do you have any example on how should I get the interrupt of the GPT?

Labels (3)
0 Kudos
Reply
1 Reply

780 Views
igorpadykov
NXP Employee
NXP Employee

Hi David

one can try with official nxp linux from source.codeaurora.org/external/imx/linux-imx  repository
linux-imx - i.MX Linux kernel 
Linux 4.19.35_1.1.0 Documentation

Also some gpt examples can be found in

FreeRTOS_iMX7D_1.0.1_WIN

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

0 Kudos
Reply