Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.184 kB
#include <avr/io.h>
#include "spi.h"
void SPI_Init(void)
{
SPCR = (1<<SPE)|(1<<MSTR)|(1<<SPR0);
}
void SPI_send(uint8_t cData)
{
SPDR = cData;
while(!(SPSR & (1<<SPIF)));
}
Jump to Line
Something went wrong with that request. Please try again.