Browse Source

restore CAN support on ATmegaxx4(P)

feature/2015
Christian Kroll 11 years ago
parent
commit
6c862db18d
  1. 8
      src/can/can.c

8
src/can/can.c

@ -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…
Cancel
Save