Skip to content

Commit f36364e

Browse files
ABOSTMfpistm
authored andcommitted
core(C0): Backup register LL API change
Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 10a4ddb commit f36364e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/arduino/stm32/backup.h

+4
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ static inline void setBackupRegister(uint32_t index, uint32_t value)
119119
#else
120120
LL_RTC_BKP_SetRegister(TAMP, index, value);
121121
#endif
122+
#elif defined(BKPREG1)
123+
LL_PWR_BKP_SetRegister(index, value);
122124
#else
123125
UNUSED(index);
124126
UNUSED(value);
@@ -140,6 +142,8 @@ static inline uint32_t getBackupRegister(uint32_t index)
140142
#else
141143
return LL_RTC_BKP_GetRegister(TAMP, index);
142144
#endif
145+
#elif defined(BKPREG1)
146+
return LL_PWR_BKP_GetRegister(index);
143147
#else
144148
UNUSED(index);
145149
return 0;

0 commit comments

Comments
 (0)