mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-01 11:15:55 +02:00
fw/spi.c (spi_init): raise SPI speed from fosc/4 to fosc/2
This commit is contained in:
parent
ea994c8ed0
commit
ffcfd3d09d
4
fw/spi.c
4
fw/spi.c
@ -26,11 +26,11 @@
|
|||||||
|
|
||||||
void spi_init(void)
|
void spi_init(void)
|
||||||
{
|
{
|
||||||
/* SPI mode 0, MSB first, fosc/4 */
|
/* SPI mode 0, MSB first, fosc/2 */
|
||||||
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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user