responds to RATS correctly

This commit is contained in:
Conor Patrick
2019-01-12 20:20:47 -05:00
parent 62cd7cc728
commit 302ce75ce6
5 changed files with 140 additions and 26 deletions

View File

@ -527,10 +527,10 @@ static void MX_SPI1_Init(void)
SPI_InitStruct.ClockPolarity = LL_SPI_POLARITY_LOW;
SPI_InitStruct.ClockPhase = LL_SPI_PHASE_2EDGE;
SPI_InitStruct.NSS = LL_SPI_NSS_SOFT;
if (!NFC)
SPI_InitStruct.BaudRate = LL_SPI_BAUDRATEPRESCALER_DIV64;
else
SPI_InitStruct.BaudRate = LL_SPI_BAUDRATEPRESCALER_DIV8;
// if (!NFC)
// SPI_InitStruct.BaudRate = LL_SPI_BAUDRATEPRESCALER_DIV64;
// else
SPI_InitStruct.BaudRate = LL_SPI_BAUDRATEPRESCALER_DIV2;
SPI_InitStruct.BitOrder = LL_SPI_MSB_FIRST;
SPI_InitStruct.CRCCalculation = LL_SPI_CRCCALCULATION_DISABLE;
SPI_InitStruct.CRCPoly = 7;