Date:2012-06-22 00:38:44 (8 years 2 months ago)
Author:Werner Almesberger
Commit:ffcfd3d09d4c5555125418f5a6a90d99fd5b0f18
Message:fw/spi.c (spi_init): raise SPI speed from fosc/4 to fosc/2

Files: fw/spi.c (1 diff)

Change Details

fw/spi.c
2626
2727void spi_init(void)
2828{
29    /* SPI mode 0, MSB first, fosc/4 */
29    /* SPI mode 0, MSB first, fosc/2 */
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