From a1b981e4f84a870146c32dba78cbf0bd5f2653e8 Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Thu, 3 Feb 2011 12:20:24 +0100 Subject: [PATCH] [avr] switch avr to SPI mode 2 (inverted SCK) for new level-shifer --- mote/v2/avr/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mote/v2/avr/main.c b/mote/v2/avr/main.c index dc72f5b..ba8e793 100644 --- a/mote/v2/avr/main.c +++ b/mote/v2/avr/main.c @@ -386,7 +386,7 @@ int main(void) // initialize the UART hardware and buffers uartInit(); // initialize the SPI in slave mode - setup_spi(SPI_MODE_0, SPI_MSB, SPI_INTERRUPT, SPI_SLAVE); + setup_spi(SPI_MODE_2, SPI_MSB, SPI_INTERRUPT, SPI_SLAVE); for(;;) {