11 #if defined(__AVR_ATmega8__)
16 #elif defined(__AVR_ATmega32__) || defined(__AVR_ATmega16__) || defined(__AVR_ATmega162__)
22 #error "SPI pins undefined for this target"
25 #define SPI_SS_HIGH() (SPIPORT |= (1<<SPISS))
26 #define SPI_SS_LOW() (SPIPORT &= ~(1<<SPISS))
29 uint8_t spi_readwrite(uint8_t data
);
30 void spi_write(uint8_t data
);
31 uint8_t spi_read(void);