[En-Nut-Discussion] CAN128: AvrCanOvrIrqCtl and AvrCanTxIrqCtl
Henrik Maier
hmlists at focus-sw.com
Tue Feb 28 03:23:01 CET 2006
Uwe,
today I committed the missing function implementation for
AvrCanOvrIrqCtl and AvrCanTxIrqCtl into the CVS-head.
Henrik
http://www.proconx.com
Uwe Bonnes wrote:
> Hallo,
>
> for my homebrew AT90CAN128 hardware,
> result = NutRegisterDevice(&devAtCan, 0, 0);
> always returns -1 (failure).
> This boils down to
> if (NutRegisterIrqHandler(&sig_CAN_TRANSFER, AtCanInterrupt, dev))
> in atcan.c failing and is caused by
> if (irq->ir_ctl) {
> rc = (irq->ir_ctl) (NUT_IRQCTL_INIT, NULL);
> in NutRegisterIrqHandler() in ihndlr.c.
>
> Both AvrCanOvrIrqCtl and AvrCanTxIrqCtl are defined (avr/dev/ih_canit.c,
> avr/dev/ih_ovrit.c, avr/dev/ivect35.c and avr/dev/ivect36.c )
> but always return -1.
>
> As long as AvrCanOvrIrqCtl and AvrCanTxIrqCtl are empty, they either should
> not be defined or should return 0, shouldn't they?
>
> Bye
More information about the En-Nut-Discussion
mailing list