diff Small_CPU/Src/spi.c @ 124:4b355396557a FlipDisplay

Change GPIO speed for SPI communication as recommended by STM32 Errata
author Ideenmodellierer
date Sun, 27 Jan 2019 22:17:16 +0100
parents 6347a86caa18
children 6ae8ba5683d6
line wrap: on
line diff
--- a/Small_CPU/Src/spi.c	Sun Jan 27 22:01:07 2019 +0100
+++ b/Small_CPU/Src/spi.c	Sun Jan 27 22:17:16 2019 +0100
@@ -157,7 +157,7 @@
 //    GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7;
 		GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
 		GPIO_InitStruct.Pull = GPIO_PULLUP;
-		GPIO_InitStruct.Speed = GPIO_SPEED_MEDIUM;
+		GPIO_InitStruct.Speed = GPIO_SPEED_FAST; /* Decision is based on errata which recommends FAST for GPIO at 90Mhz */
 		GPIO_InitStruct.Alternate = GPIO_AF5_SPI1;
 		HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);