We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a4ddb commit f36364eCopy full SHA for f36364e
cores/arduino/stm32/backup.h
@@ -119,6 +119,8 @@ static inline void setBackupRegister(uint32_t index, uint32_t value)
119
#else
120
LL_RTC_BKP_SetRegister(TAMP, index, value);
121
#endif
122
+#elif defined(BKPREG1)
123
+ LL_PWR_BKP_SetRegister(index, value);
124
125
UNUSED(index);
126
UNUSED(value);
@@ -140,6 +142,8 @@ static inline uint32_t getBackupRegister(uint32_t index)
140
142
141
143
return LL_RTC_BKP_GetRegister(TAMP, index);
144
145
146
+ return LL_PWR_BKP_GetRegister(index);
147
148
149
return 0;
0 commit comments