spibus_avr.c File Reference

General AVR SPI bus driver rotuines. More...

Go to the source code of this file.

Functions

int AvrSpiSetup (NUTSPINODE *node)
 Update SPI shadow registers.


Detailed Description

General AVR SPI bus driver rotuines.

 * $Id: spibus_avr.c,v 1.1 2009/01/09 17:54:33 haraldkipp Exp $
 * 

Definition in file spibus_avr.c.


Function Documentation

int AvrSpiSetup ( NUTSPINODE node  ) 

Update SPI shadow registers.

Definition at line 51 of file spibus_avr.c.

References _BV, _AVRSPIREG::avrspi_spcr, _NUTSPINODE::node_mode, _NUTSPINODE::node_rate, _NUTSPINODE::node_stat, NUT_HWCLK_PERIPHERAL, NutClockGet, SPI_MODE_3, and SPI_MODE_UPDATE.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/