Skip to content

Commit 5b67626

Browse files
authored
fix: STM32H7S78_DK compilation (#5984)
1 parent 5bb7612 commit 5b67626

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

radio/src/targets/common/arm/stm32/rtc_driver.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ void rtcInit()
7070
// Enable LSE Oscillator
7171
RCC_OscInitTypeDef RCC_OscInitStruct;
7272
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE;
73+
#if !defined(STM32H7RS) && !defined(STM32H5)
7374
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
75+
#endif
7476
RCC_OscInitStruct.LSEState = RCC_LSE_ON;
7577

7678
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) == HAL_OK) {

0 commit comments

Comments
 (0)