Date:2012-06-22 00:52:41 (7 years 7 months ago)
Author:Werner Almesberger
Commit:b262e2f142e043c39d99053739330f55cf455276
Message: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.
Files: fw/spi.c (1 diff)

Change Details

fw/spi.c
2626
2727void spi_init(void)
2828{
29    /* SPI mode 0, MSB first, fosc/2 */
29    /* SPI mode 0, MSB first, fosc/4 */
3030    SPCR =
3131        1 << SPE | /* enable SPI */
3232        1 << MSTR; /* master */
33    SPSR = 1 << SPI2X; /* enable for fosc/2 */
33// SPSR = 1 << SPI2X; /* enable for fosc/2 */
3434}
3535
3636

Archive Download the corresponding diff file

Branches:
master
tornado-v1



interactive