Explorar o código

Set maximum possible SPI speed.

Vladimir N. Shilov %!s(int64=4) %!d(string=hai) anos
pai
achega
dc3c4d0e01
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Src/main.c

+ 1 - 1
Src/main.c

@@ -510,7 +510,7 @@ static void MX_SPI1_Init(void)
   SPI_InitStruct.ClockPolarity = LL_SPI_POLARITY_LOW;
   SPI_InitStruct.ClockPhase = LL_SPI_PHASE_1EDGE;
   SPI_InitStruct.NSS = LL_SPI_NSS_SOFT;
-  SPI_InitStruct.BaudRate = LL_SPI_BAUDRATEPRESCALER_DIV256;
+  SPI_InitStruct.BaudRate = LL_SPI_BAUDRATEPRESCALER_DIV16;
   SPI_InitStruct.BitOrder = LL_SPI_MSB_FIRST;
   SPI_InitStruct.CRCCalculation = LL_SPI_CRCCALCULATION_DISABLE;
   SPI_InitStruct.CRCPoly = 7;