Skip to content

Commit

Permalink
#234: Update deck SPI log speed to bellow 2MHz
Browse files Browse the repository at this point in the history
Required for flow deck and does not affect other decks (the low
speed is used only at startup by the Loco positioning deck)
  • Loading branch information
ataffanel committed Jun 14, 2017
1 parent eb8f0a6 commit df3b5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deck/api/deck_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void spiConfigureSlow()
SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB;
SPI_InitStructure.SPI_CRCPolynomial = 0; // Not used

SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_32; //~2.7 MHz
SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_64; //~1.35 MHz
SPI_Init(SPI, &SPI_InitStructure);
}

Expand Down

0 comments on commit df3b5a5

Please sign in to comment.