[En-Nut-Discussion] External interrupt on PE6

Elger Jonker elger.jonker at gmail.com
Wed Jun 8 14:04:46 CEST 2005


Hi,

I want to use PINE6 as an external interrupt. The board has the
default configuration (PE5 lan interrupt). I connected the 5V power
pin to PE6 with a switch. When i hit the switch it should give PE6
enough power to say there is an interrupt (i think).

In the software i use:
INTERRUPT(SIG_INTERRUPT6){
    while(1){
        /* Do nothing */
    }
}

Is this the right way? Or should i override the SIG_INTERRUPT6 (void)
function with my code? And where do i place this: IRQ_HANDLER 
sig_INTERRUPT6 ?

Regards,
Elger Jonker



More information about the En-Nut-Discussion mailing list