AnsweredAssumed Answered

MPC8309 gpio interrupt

Question asked by wei yang on Dec 1, 2015
Latest reply on Dec 15, 2015 by Pavel Chubakov

Dear everyone

    I am new to use MPC8309, kernel version:, BSP 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、 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 .