fix(h7): various build fixes (#5283)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
co-authored by
raphaelcoeffic
parent
170bdebcc4
commit
c7bc9f01c9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user