If imx6ul uses gpio_set_value function to simulate a certain time sequence, it will cause CPU occupancy rate to be particularly high. If I operate the GPIO DR register myself, this will not happen.
Hi ninghong
you are right, also one can look at below link for suggestions how to increase speed
https://community.nxp.com/message/841330?commentID=841330#comment-841330
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igorpadykov
Thank you for your advice, but I think this is a different case. Now I am driven by linux, frequently calling the interface gpio_set_value will cause the whole Linux system to become very slow, and even affect other functions.
Can imx6 GPIO set registers that specify a bit change? So I can use registers to control my driver directly. Not considering mutex