Hi everyone, I'm working on iMX515, My linux driver has 3 statements :
gpio_set_value(pin,1);
gpio_set_value(pin,0);
gpio_set_value(pin,1);
Then ,I can get a negative pulse which pulse width is about 320ns. It seems too slowly, How can I speed it up?
解決済! 解決策の投稿を見る。
Hi tiejun
one can write small subroutine on assembler for faster access, also it may be
recommended to have L2 cache enabled and the MMU, then try to find the entry
that corresponds to the area where the GPIO registers are mapped and set the
bufferable field for that particular mmu entry.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi tiejun
one can write small subroutine on assembler for faster access, also it may be
recommended to have L2 cache enabled and the MMU, then try to find the entry
that corresponds to the area where the GPIO registers are mapped and set the
bufferable field for that particular mmu entry.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks,I use your method,and get a negative pulse which width is about 80ns.