changes, not working

This commit is contained in:
2021-01-30 17:56:50 +01:00
parent e9914f5bb1
commit b85abe43bb
13 changed files with 90 additions and 836 deletions

View File

@ -121,15 +121,15 @@ void HAL_SPI_MspInit(SPI_HandleTypeDef* spiHandle)
PB14 ------> SPI2_MISO
PB15 ------> SPI2_MOSI
*/
GPIO_InitStruct.Pin = Display_SCK_Pin|Display_MOSI_Pin;
GPIO_InitStruct.Pin = ETHER_SCK_Pin|ETHER_MOSI_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
GPIO_InitStruct.Pin = Display_MISO_Pin;
GPIO_InitStruct.Pin = ETHER_MISO_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(Display_MISO_GPIO_Port, &GPIO_InitStruct);
HAL_GPIO_Init(ETHER_MISO_GPIO_Port, &GPIO_InitStruct);
/* USER CODE BEGIN SPI2_MspInit 1 */
@ -174,7 +174,7 @@ void HAL_SPI_MspDeInit(SPI_HandleTypeDef* spiHandle)
PB14 ------> SPI2_MISO
PB15 ------> SPI2_MOSI
*/
HAL_GPIO_DeInit(GPIOB, Display_SCK_Pin|Display_MISO_Pin|Display_MOSI_Pin);
HAL_GPIO_DeInit(GPIOB, ETHER_SCK_Pin|ETHER_MISO_Pin|ETHER_MOSI_Pin);
/* USER CODE BEGIN SPI2_MspDeInit 1 */