1
0
mirror of https://github.com/cclassic/hcs12ss59t synced 2024-11-24 11:05:05 +01:00

Increase SPI clock speed

This commit is contained in:
Markus Koch 2018-01-14 20:37:53 +01:00
parent 048ecdad1c
commit 7828be22aa

View File

@ -39,8 +39,7 @@ void hcs12ss59t_init()
(1 << HCS12SS59T_SPI_SCK) |
(1 << HCS12SS59T_SPI_SS_N) |
(1 << HCS12SS59T_SPI_RESET_N);
SPCR = (1 << SPE) | (1 << MSTR) | (1 << SPR0) |
(1 << SPR1) | (1 << DORD);
SPCR = (1 << SPE) | (1 << MSTR) | (1 << DORD) | (1 << SPR0);
hcs12ss59t_reset();
}