[En-Nut-Discussion] Problem with GpioIrqEnable

zonedar sholder at summitsemi.com
Thu Mar 1 21:15:35 CET 2012


Klaus,

  It's pointing to PioCtlA (see my previous post).

  In that function it is hanging up at:

    outr(PIOA_IER, _BV(bit));  //NOT returning from here

  Also in the previous post.

  Thanks!


 


Klaus Kloos wrote:
> 
> Hello Steve
>> 
>> 
>>  Thanks for the reply.  The call to NutRegisterIrqHandler is inside Nut's
>> GpioRegisterIrqHandler function below: 
>> 
>> int GpioRegisterIrqHandler(GPIO_SIGNAL * sig, int bit, void (*handler)
>> (void
>> *), void *arg)
>> {
>>    int rc = 0;
>> 
>>    if (sig->ios_vector == 0) {
>>        /* This is the first call. Allocate the vector table. */
>>        sig->ios_vector = malloc(sizeof(GPIO_VECTOR) * 32);
>>        if (sig->ios_vector) {
>>            memset(sig->ios_vector, 0, sizeof(GPIO_VECTOR) * 32);
>>            /* Register our internal PIO interrupt service. */
>>            rc = NutRegisterIrqHandler(sig->ios_sig, sig->ios_handler,
>> sig->ios_vector);
> Where is sig->ios_handler pointing to?
> Are you able to set a breakpoint in this IRQ function? Is it called where
> the IRQ is enabled?
> 
> Greetings Klaus
> 
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
> 
> 

-- 
View this message in context: http://old.nabble.com/Problem-with-GpioIrqEnable-tp33422809p33424070.html
Sent from the MicroControllers - Ethernut mailing list archive at Nabble.com.



More information about the En-Nut-Discussion mailing list