Mercurial > public > ostc4
changeset 125:626191e1fed1 FlipDisplay
Change GPIO speed for SPI communication as recommended by STM32 Errata
author | Ideenmodellierer |
---|---|
date | Sun, 27 Jan 2019 22:21:01 +0100 |
parents | 4b355396557a |
children | 1369f8660eaa |
files | Discovery/Src/stm32f4xx_hal_msp_hw2.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Src/stm32f4xx_hal_msp_hw2.c Sun Jan 27 22:17:16 2019 +0100 +++ b/Discovery/Src/stm32f4xx_hal_msp_hw2.c Sun Jan 27 22:21:01 2019 +0100 @@ -298,7 +298,7 @@ GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_7; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_FAST; /* Decision is based on errata which recomments FAST for GPIO at 90Mhz */ + 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); GPIO_InitStruct.Pin = GPIO_PIN_4; @@ -393,7 +393,7 @@ GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_HIGH; //GPIO_SPEED_MEDIUM;//GPIO_SPEED_LOW; + GPIO_InitStruct.Speed = /* Decision is based on errata which recommends FAST for GPIO at 90Mhz */ GPIO_InitStruct.Alternate = GPIO_AF5_SPI5; HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);