/**
 @mainpage SPI Library



 @section Overview

This package provides a set of routines to send and receive a byte on
the SPI controller of AT90CAN128 product.

This document describes how to use the librairy.

A example of usage is available on the section \ref page1 "Usage Example".

To list the functions available select "Globals / Functions" in the menu.

 @par CONFIGURATION
  The driver must be configured with the following parameters:
- SPI_CONFIG to select
   - the prescaler
   - the data order (LSB or MSB transmit first)
   - the clock polarity (leading edge or trailling edge)
   - the clock phase   

*/
/**
  @page page1 Usage Example
  @section Config
  #define FOSC 8000        
  #define SPI_CONFIG  (MSK_SPI_DIV4 | MSK_SPI_LSBFIRST | MSK_SPI_CPHA_LEADING |MSK_SPI_CPOL_LOW)
     

  @section Main
  @code
 
  spi_init(SPI_MASTER);
  DDRB = 0x06;

  spi_putchar(0xAA);

  spi_putchar(0x55);
  
  while(!spi_test_hit());	
	
  temp=spi_getchar();
	
  spi_putchar(temp);
  
  while(1);

  @endcode
*/





