[avr] switch avr to SPI mode 2 (inverted SCK) for new level-shifer
This commit is contained in:
parent
f99ea292ff
commit
a1b981e4f8
|
@ -386,7 +386,7 @@ int main(void)
|
||||||
// initialize the UART hardware and buffers
|
// initialize the UART hardware and buffers
|
||||||
uartInit();
|
uartInit();
|
||||||
// initialize the SPI in slave mode
|
// initialize the SPI in slave mode
|
||||||
setup_spi(SPI_MODE_0, SPI_MSB, SPI_INTERRUPT, SPI_SLAVE);
|
setup_spi(SPI_MODE_2, SPI_MSB, SPI_INTERRUPT, SPI_SLAVE);
|
||||||
|
|
||||||
|
|
||||||
for(;;) {
|
for(;;) {
|
||||||
|
|
Loading…
Reference in New Issue