restore CAN support on ATmegaxx4(P)
This commit is contained in:
parent
73fac66780
commit
6c862db18d
|
@ -395,7 +395,13 @@ unsigned char mcp_status();
|
||||||
#else
|
#else
|
||||||
//this turns on INT0 on the Atmel
|
//this turns on INT0 on the Atmel
|
||||||
MCUCR |= (1<<ISC01);
|
MCUCR |= (1<<ISC01);
|
||||||
GIMSK |= (1<<INT0);
|
#ifdef EIMSK
|
||||||
|
EIMSK |= (1<<INT0);
|
||||||
|
#elif defined(GIMSK)
|
||||||
|
GIMSK |= (1<<INT0);
|
||||||
|
#else
|
||||||
|
GICR |= (1<<INT0);
|
||||||
|
#endif
|
||||||
#endif //ATMEGA
|
#endif //ATMEGA
|
||||||
#else //CAN_INTERRUPT
|
#else //CAN_INTERRUPT
|
||||||
// configure IRQ: this only configures the INT Output of the mcp2515,
|
// configure IRQ: this only configures the INT Output of the mcp2515,
|
||||||
|
|
Loading…
Reference in New Issue