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

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.
This commit is contained in:
Werner Almesberger 2012-06-21 19:52:41 -03:00
parent ffcfd3d09d
commit b262e2f142

View File

@ -26,11 +26,11 @@
void spi_init(void) void spi_init(void)
{ {
/* SPI mode 0, MSB first, fosc/2 */ /* SPI mode 0, MSB first, fosc/4 */
SPCR = SPCR =
1 << SPE | /* enable SPI */ 1 << SPE | /* enable SPI */
1 << MSTR; /* master */ 1 << MSTR; /* master */
SPSR = 1 << SPI2X; /* enable for fosc/2 */ // SPSR = 1 << SPI2X; /* enable for fosc/2 */
} }