[En-Nut-Discussion] CAN128: AvrCanOvrIrqCtl and AvrCanTxIrqCtl

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Mon Feb 27 17:52:39 CET 2006


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
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the En-Nut-Discussion mailing list