2 #include <avr/interrupt.h>
14 sei(); // enable interrupts
16 internal_eeprom_write8(0xDE, 0);
17 internal_eeprom_write8(0xAD, 1);
19 uint8_t de
= internal_eeprom_read8(0);
20 uint8_t ad
= internal_eeprom_read8(1);
25 spieeprom_write(0xBE, 0);
26 spieeprom_write(0xEF, 1);
34 DDRB
= 0xB9; // spi_clk, spi_in, spi_out, NC, TX, RX, clock in, clock
37 DDRC
= 0xFF; // Address
40 DDRD
= 0xFA; // NC, NC, NC, NC, NC, CAN_INT, MIDI TX & RX