General AVR SPI bus driver rotuines. More...
Go to the source code of this file.
Functions | |
int | AvrSpiSetup (NUTSPINODE *node) |
Update SPI shadow registers. |
General AVR SPI bus driver rotuines.
* $Id: spibus_avr.c 2375 2009-01-09 17:54:38Z haraldkipp $ *
Definition in file spibus_avr.c.
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.
Referenced by AvrSpiBus0NodeInit(), and AvrSpiBus0Select().