Serial peripheral interface

spi_init

static inline void spi_init(enum spiMode mode)

Initializes SPI interface. Parameters: mode - Specify mode of SPI interface

NOTE: Global interrupt must be enabled for right function of SPI. { SREG |= _BV(7) }