imx6 GPIO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6 GPIO

1,928件の閲覧回数
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 返信

628件の閲覧回数
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 件の賞賛
返信