Skip to content

Commit d99cb56

Browse files
ABOSTMfpistm
authored andcommitted
libraries(C0): SPI is on PCLK1
Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 4da73af commit d99cb56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SPI/src/utility/spi_com.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ uint32_t spi_getClkFreqInst(SPI_TypeDef *spi_inst)
5757
{
5858
uint32_t spi_freq = SystemCoreClock;
5959
if (spi_inst != NP) {
60-
#if defined(STM32F0xx) || defined(STM32G0xx)
60+
#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32G0xx)
6161
/* SPIx source CLK is PCKL1 */
6262
spi_freq = HAL_RCC_GetPCLK1Freq();
6363
#else

0 commit comments

Comments
 (0)