Skip to content

Commit c9329fe

Browse files
committed
core: backup: add STM32U5xx 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 <[email protected]>
1 parent 65377c0 commit c9329fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/stm32/backup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static inline void setBackupRegister(uint32_t index, uint32_t value)
106106
#elif defined(RTC_BKP0R)
107107
LL_RTC_BAK_SetRegister(RTC, index, value);
108108
#elif defined(TAMP_BKP0R)
109-
#if defined(STM32G4xx) || defined(STM32L5xx) ||\
109+
#if defined(STM32G4xx) || defined(STM32L5xx) || defined(STM32U5xx) ||\
110110
defined(STM32MP1xx) || defined(STM32WLxx)
111111
/* For those series this API requires RTC even if it is not used
112112
and TAMP is used instead */
@@ -127,7 +127,7 @@ static inline uint32_t getBackupRegister(uint32_t index)
127127
#elif defined(RTC_BKP0R)
128128
return LL_RTC_BAK_GetRegister(RTC, index);
129129
#elif defined(TAMP_BKP0R)
130-
#if defined(STM32G4xx) || defined(STM32L5xx) ||\
130+
#if defined(STM32G4xx) || defined(STM32L5xx) || defined(STM32U5xx) ||\
131131
defined(STM32MP1xx) || defined(STM32WLxx)
132132
/* For those series this API requires RTC even if it is not used
133133
and TAMP is used instead */

0 commit comments

Comments
 (0)