Skip to content

Commit 6f507a8

Browse files
bakatroublehallard
authored andcommitted
Support missing SPI6 on STM32F7
1 parent 0474448 commit 6f507a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_STM/TARGET_STM32F7/spi_api.c

+2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ int spi_get_clock_freq(spi_t *obj)
5858
case SPI_1:
5959
case SPI_4:
6060
case SPI_5:
61+
#if defined SPI6_BASE
6162
case SPI_6:
63+
#endif // defined SPI6_BASE
6264
/* SPI_1, SPI_4, SPI_5 and SPI_6. Source CLK is PCKL2 */
6365
spi_hz = HAL_RCC_GetPCLK2Freq();
6466
break;

0 commit comments

Comments
 (0)