MPC8309 gpio interrupt

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

MPC8309 gpio interrupt

2,107件の閲覧回数
威杨
Contributor III

Dear everyone

    I am new to use MPC8309, kernel version:2.6.33.7, BSP version:TWRMPC8309_Linux_BSP.zip.i want to use gpio as a interrupt function,from high level to low level as trigger condition,refer to MPC8309RM.pdf

i call request_irq(),function as follow:

request_irq() the second parameter only set up "IRQF_TRIGGER_LOW“,if set up "IRQF_TRIGGER_RISING" "IRQF_TRIGGER_FALLING" "IRQF_TRIGGER_HIGH"will cause error , error:"INVAL".

I used IRQ0、IRQ1.as follow:

but it no error, i see MPC8309RM.pdf,find System External Interrupt Control Register (SECNR)

the EDIx can set up  interrupt signals,but i do not find set up interrupt signals in System Internal Interrupt Control Register.

i do not know what different system external interrupt(IRQ0) and system internal interrupt(GPIO),and gpio can not set up  IRQF_TRIGGER_RISING" "IRQF_TRIGGER_FALLING" "IRQF_TRIGGER_HIGH" state, only set up IRQF_TRIGGER_LOW and not be change..

who can give me some advise ?

Have a good day .
0 件の賞賛
返信
1 返信

1,714件の閲覧回数
Pavel
NXP Employee
NXP Employee

The MPC8309 IRQ0 is used as interrupt from MPR121 touch screen on Display Module. See the TWR-MPC8309 dts file.

Look at attached file. The TWRMPC8309_Linux_BSP does not support sys/dev possibility for GPIO. Use Generic GPIO API. Is there problem for using gpio_is_valid or gpio_request procedures.

Have a great day,
Pavel

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

0 件の賞賛
返信