Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e814a9

Browse files
committed
fix(backup): update to support STM32C0xx
BKPREG1 do not exist anymore, include the correctll header.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent4569b78 commit6e814a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎cores/arduino/stm32/backup.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/* Includes ------------------------------------------------------------------*/
2525
#include"stm32_def.h"
2626
#include"stm32yyxx_ll_rtc.h"
27+
#include"stm32yyxx_ll_pwr.h"
2728

2829
#ifdef__cplusplus
2930
extern"C" {
@@ -128,7 +129,7 @@ static inline void setBackupRegister(uint32_t index, uint32_t value)
128129
#else
129130
LL_RTC_BKP_SetRegister(TAMP,index,value);
130131
#endif
131-
#elif defined(BKPREG1)
132+
#elif defined(PWR_BKP0R)
132133
LL_PWR_BKP_SetRegister(index,value);
133134
#else
134135
UNUSED(index);
@@ -152,7 +153,7 @@ static inline uint32_t getBackupRegister(uint32_t index)
152153
#else
153154
returnLL_RTC_BKP_GetRegister(TAMP,index);
154155
#endif
155-
#elif defined(BKPREG1)
156+
#elif defined(PWR_BKP0R)
156157
returnLL_PWR_BKP_GetRegister(index);
157158
#else
158159
UNUSED(index);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp