Skip to content

Commit b0677d4

Browse files
committed
core(backup): add STM32H5xx guard
Some serie still require to use their name due to wrong LL API prototype using RTC parameter instead of TAMP. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 9e635a7 commit b0677d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cores/arduino/stm32/backup.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ static inline void setBackupRegister(uint32_t index, uint32_t value)
111111
#elif defined(RTC_BKP0R)
112112
LL_RTC_BAK_SetRegister(RTC, index, value);
113113
#elif defined(TAMP_BKP0R)
114-
#if defined(STM32G4xx) || defined(STM32L5xx) || defined(STM32U5xx) ||\
115-
defined(STM32MP1xx) || defined(STM32WLxx)
114+
#if defined(STM32G4xx) || defined(STM32H5xx) || defined(STM32L5xx) ||\
115+
defined(STM32U5xx) || defined(STM32MP1xx) || defined(STM32WLxx)
116116
/* For those series this API requires RTC even if it is not used
117117
and TAMP is used instead */
118118
LL_RTC_BKP_SetRegister(RTC, index, value);
@@ -134,8 +134,8 @@ static inline uint32_t getBackupRegister(uint32_t index)
134134
#elif defined(RTC_BKP0R)
135135
return LL_RTC_BAK_GetRegister(RTC, index);
136136
#elif defined(TAMP_BKP0R)
137-
#if defined(STM32G4xx) || defined(STM32L5xx) || defined(STM32U5xx) ||\
138-
defined(STM32MP1xx) || defined(STM32WLxx)
137+
#if defined(STM32G4xx) || defined(STM32H5xx) || defined(STM32L5xx) ||\
138+
defined(STM32U5xx) || defined(STM32MP1xx) || defined(STM32WLxx)
139139
/* For those series this API requires RTC even if it is not used
140140
and TAMP is used instead */
141141
return LL_RTC_BKP_GetRegister(RTC, index);

0 commit comments

Comments
 (0)