diff options
author | David Lamparter <equinox@diac24.net> | 2013-03-10 04:36:10 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2013-03-10 04:36:10 +0100 |
commit | 3a776c311ccd2bc456d7563d1cebfdc832bdad57 (patch) | |
tree | 758365eb7832890bd8c63486c045652c61dacbf9 | |
parent | 53b0281e610b1c7802e2c953053402671d4de86e (diff) |
can: more r0ket compat
-rw-r--r-- | can.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -246,10 +246,11 @@ ISR(INT0_vect) static void can_preinit(void) { - can_rx_addr.u = 0; spi_ss(1); #ifndef R0KET + can_rx_addr.u = 0; + DDRB |= (1 << B_SCK) | (1 << B_MOSI) | (1 << B_SS); /* divisor: 0 0 0 = fosc / 4 = 2 MHz */ |