Skip to content

Commit b7c4c13

Browse files
ABOSTMfpistm
authored andcommitted
libraries(C0): Remove PLL reference when not available
C0 doesn't have PLL Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 11f5faf commit b7c4c13

File tree

1 file changed

+2
-0
lines changed
  • libraries/SrcWrapper/src/stm32

1 file changed

+2
-0
lines changed

libraries/SrcWrapper/src/stm32/clock.c

+2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ void SysTick_Handler(void)
7777
void enableClock(sourceClock_t source)
7878
{
7979
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
80+
#if defined(RCC_PLL_NONE)
8081
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
82+
#endif
8183

8284
#if defined(STM32MP1xx)
8385
/** Clock source selection is done by First Stage Boot Loader on Cortex A

0 commit comments

Comments
 (0)