From 0e64ff9a90c6ff17d42bd52439ded40635be51fc Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 28 Oct 2021 19:15:29 +0300 Subject: [PATCH] Support missing SPI6 on STM32F7 --- targets/TARGET_STM/TARGET_STM32F7/spi_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/targets/TARGET_STM/TARGET_STM32F7/spi_api.c b/targets/TARGET_STM/TARGET_STM32F7/spi_api.c index f7c8cdbc2c..dd636b2ba7 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/spi_api.c +++ b/targets/TARGET_STM/TARGET_STM32F7/spi_api.c @@ -58,7 +58,9 @@ int spi_get_clock_freq(spi_t *obj) case SPI_1: case SPI_4: case SPI_5: + #if defined SPI6_BASE case SPI_6: + #endif // defined SPI6_BASE /* SPI_1, SPI_4, SPI_5 and SPI_6. Source CLK is PCKL2 */ spi_hz = HAL_RCC_GetPCLK2Freq(); break;