imx6 GPIO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx6 GPIO

2,273 次查看
amonica
Contributor II

Hi,

     I wanted to configure the GPIO pin 9 on imx6 board as interrupt. I have added the following configurations

  ret = gpio_request((unsigned int)bridge.nGpio,"Interrupt");

  ret = gpio_direction_input((unsigned int)bridge.nGpio);

  ret = gpio_export((unsigned int)bridge.nGpio, 1);

  bridge.irq = gpio_to_irq((unsigned int)bridge.nGpio);

The interrupts keeps on coming on imx6 but even though my device does not generate any interrupt. Is anything else required to be added on my gpio config side.

Regards,

Amonica

0 项奖励
回复
1 回复

973 次查看
igorpadykov
NXP Employee
NXP Employee

Hi AGNES

please start with checking links below

http://android.serverbox.ch/?p=972GPIO interr Android

http://blog.skerpa.com/dschnell/blog/2013/10/27/linux-and-gpio-userspace-interrupts/

Also it may be suefyl to check pad with oscilloscope for actual

signal state.

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复