General AVR SPI bus driver rotuines. More...
Functions | |
int | AvrSpiSetup (NUTSPINODE *node) |
Update SPI shadow registers. |
General AVR SPI bus driver rotuines.
* $Id: spibus_avr.c 4115 2012-04-12 21:06:13Z olereinhardt $ *
int AvrSpiSetup | ( | NUTSPINODE * | node | ) |
Update SPI shadow registers.
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().