Remove unused SPI initializer flag from AVR. Comment out in the msp-430 template.

This commit is contained in:
David Kopf 2012-02-27 17:05:22 -05:00
parent 79d65d2adc
commit 2b7ecefce7
2 changed files with 2 additions and 8 deletions

View File

@ -26,7 +26,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)$Id: spi.c,v 1.1 2007/01/25 18:22:55 bg- Exp $
*/
#include <avr/io.h>
@ -48,11 +47,6 @@ unsigned char spi_busy = 0;
void
spi_init(void)
{
static unsigned char spi_inited = 0;
if (spi_inited)
return;
/* Initalize ports for communication with SPI units. */
/* CSN=SS and must be output when master! */
DDRB |= BV(MOSI) | BV(SCK) | BV(CSN);

View File

@ -26,7 +26,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)$Id: spi.c,v 1.1 2006/06/17 22:41:21 adamdunkels Exp $
*/
#include "contiki-conf.h"
@ -46,11 +45,12 @@ unsigned char spi_busy = 0;
void
spi_init(void)
{
/*
static unsigned char spi_inited = 0;
if (spi_inited)
return;
*/
/* Initalize ports for communication with SPI units. */
U0CTL = CHAR + SYNC + MM + SWRST; /* SW reset,8-bit transfer, SPI master */