10 #ifndef _SPIMASTER_HARDWARE_H
11 #define _SPIMASTER_HARDWARE_H
16 spi_reg Spi_ddr = &DDRB;
17 spi_reg Spi_pin = &PINB;
18 spi_reg Spi_port = &PORTB;
23 spi_bit Spi_DataReady = PORTB1;
24 spi_bit Spi_Ss = PORTB2;
25 spi_bit Spi_Mosi = PORTB3;
26 spi_bit Spi_Miso = PORTB4;
27 spi_bit Spi_Sck = PORTB5;
29 spi_bit Spi_MasterSlaveSelect = MSTR;
30 spi_bit Spi_ClockBit0 = SPR0;
31 spi_bit Spi_ClockBit1 = SPR1;
32 spi_bit Spi_DoubleClock = SPI2X;
33 spi_bit Spi_SpiEnable = SPE;
spi_reg Spi_SPDR
SPI Data Register.
spi_reg Spi_SPCR
SPI Control Register.
spi_reg Spi_SPSR
SPI Status Register.