Main Page | File List | Globals | Related Pages

Usage Example

Config

#define FOSC 8000 #define SPI_CONFIG (MSK_SPI_DIV4 | MSK_SPI_LSBFIRST | MSK_SPI_CPHA_LEADING |MSK_SPI_CPOL_LOW)

Main

spi_init(SPI_MASTER); DDRB = 0x06; spi_putchar(0xAA); spi_putchar(0x55); while(!spi_test_hit()); temp=spi_getchar(); spi_putchar(temp); while(1);

Generated on Thu Apr 1 15:50:21 2004 for SPI Library by doxygen 1.3.6