Support missing SPI6 on STM32F7

pull/15153/head
bakatrouble 2021-10-28 19:15:29 +03:00
parent 469d681bd9
commit 0e64ff9a90
1 changed files with 2 additions and 0 deletions

View File

@ -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;