spi.c
void spi_transmit_sync (uint8_t *dataout, uint8_t len)
{
    uint8_t i;
    for (i = 0; i < len; i++) {
        SPDR = dataout[i];
        while ((SPSR & (1 << SPIF)) == 0)
            ;
    }
}
// Shift full array to target device without receiving any byte
Shift full array to target device without receiving any byte
Shift full array to target device without receiving any byte
void spi_transmit_sync (uint8_t *dataout, uint8_t len)
{
    uint8_t i;
    for (i = 0; i < len; i++) {
        SPDR = dataout[i];
        while ((SPSR & (1 << SPIF)) == 0)
            ;
    }
}
void spi_transmit_sync ( uint8_t * dataout , uint8_t len ) { uint8_t i ; for ( i = 0 ; i < len ; i ++ ) { SPDR = dataout [ i ] ; while ( ( SPSR & ( 1 << SPIF ) ) == 0 ) ; } }
Shift full array to target device without receiving any byte
Shift full array to target device without receiving any byte