From b262e2f142e043c39d99053739330f55cf455276 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 21 Jun 2012 19:52:41 -0300 Subject: [PATCH] fw/spi.c (spi_init): revert the SPI speed increase (caused instability) Some more testing showed that transfers would get stuck after ~40 packets. Need to find out what happened before trying this again. --- fw/spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fw/spi.c b/fw/spi.c index df09a36..0337caf 100644 --- a/fw/spi.c +++ b/fw/spi.c @@ -26,11 +26,11 @@ void spi_init(void) { - /* SPI mode 0, MSB first, fosc/2 */ + /* SPI mode 0, MSB first, fosc/4 */ SPCR = 1 << SPE | /* enable SPI */ 1 << MSTR; /* master */ - SPSR = 1 << SPI2X; /* enable for fosc/2 */ +// SPSR = 1 << SPI2X; /* enable for fosc/2 */ }