1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-01 09:20:37 +02:00

fw/spi.c (spi_init): raise SPI speed from fosc/4 to fosc/2

This commit is contained in:
Werner Almesberger 2012-06-21 19:38:44 -03:00
parent ea994c8ed0
commit ffcfd3d09d

View File

@ -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 */
}