File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 24
24
/* Includes ------------------------------------------------------------------*/
25
25
#include "stm32_def.h"
26
26
#include "stm32yyxx_ll_rtc.h"
27
+ #include "stm32yyxx_ll_pwr.h"
27
28
28
29
#ifdef __cplusplus
29
30
extern "C" {
@@ -128,7 +129,7 @@ static inline void setBackupRegister(uint32_t index, uint32_t value)
128
129
#else
129
130
LL_RTC_BKP_SetRegister (TAMP , index , value );
130
131
#endif
131
- #elif defined(BKPREG1 )
132
+ #elif defined(PWR_BKP0R )
132
133
LL_PWR_BKP_SetRegister (index , value );
133
134
#else
134
135
UNUSED (index );
@@ -152,7 +153,7 @@ static inline uint32_t getBackupRegister(uint32_t index)
152
153
#else
153
154
return LL_RTC_BKP_GetRegister (TAMP , index );
154
155
#endif
155
- #elif defined(BKPREG1 )
156
+ #elif defined(PWR_BKP0R )
156
157
return LL_PWR_BKP_GetRegister (index );
157
158
#else
158
159
UNUSED (index );
You can’t perform that action at this time.
0 commit comments