From ffcfd3d09d4c5555125418f5a6a90d99fd5b0f18 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 21 Jun 2012 19:38:44 -0300 Subject: [PATCH] fw/spi.c (spi_init): raise SPI speed from fosc/4 to fosc/2 --- fw/spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fw/spi.c b/fw/spi.c index 0337caf..df09a36 100644 --- a/fw/spi.c +++ b/fw/spi.c @@ -26,11 +26,11 @@ void spi_init(void) { - /* SPI mode 0, MSB first, fosc/4 */ + /* SPI mode 0, MSB first, fosc/2 */ SPCR = 1 << SPE | /* enable SPI */ 1 << MSTR; /* master */ -// SPSR = 1 << SPI2X; /* enable for fosc/2 */ + SPSR = 1 << SPI2X; /* enable for fosc/2 */ }