fix(h7): various build fixes (#5283)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Raphael Coeffic
2024-07-11 11:28:49 +02:00
committed by GitHub
co-authored by raphaelcoeffic
parent 170bdebcc4
commit c7bc9f01c9
8 changed files with 42 additions and 12 deletions
@@ -60,7 +60,13 @@ void rtcGetTime(struct gtm * t)
void rtcInit()
{
rtc.Instance = RTC;
#if !defined(STM32H7) && !defined(STM32H7RS)
// Power management peripheral is active by default at startup level in
// STM32h7xx lines.
__HAL_RCC_PWR_CLK_ENABLE();
#endif
HAL_PWR_EnableBkUpAccess();
// Enable LSE Oscillator