[En-Nut-Discussion] pio interrupt on ethernut3
imsjoerg
imsjoerg at googlemail.com
Fri Jul 20 11:27:39 CEST 2007
Hi,
I'm not able to activate an interrupt routine for pin7 on ethernut3.
For init i do:
// enable PIO clock
outr( PS_PCER, 0x00000100 );
// pin is input
outr( PIO_ODR, PIN_BUTTON );
// route pin to PIO
outr( PIO_PER, PIN_BUTTON );
// enable interrupt
outr( PIO_IER, PIN_BUTTON );
NutRegisterIrqHandler( &sig_PIO, pio_isr, 0 );
NutIrqEnable( &sig_PIO );
My isr is not being called, but when I poll the pin,
I can see its state changes.
Did I forgot something here?
Anyone ever used the Nut/OS sig_PIO irq drivers with success?
Greets,
Joerg
More information about the En-Nut-Discussion
mailing list