Skip to content

fix(backup): update to support STM32C0xx #2326

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cores/arduino/stm32/backup.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
/* Includes ------------------------------------------------------------------*/
#include "stm32_def.h"
#include "stm32yyxx_ll_rtc.h"
#include "stm32yyxx_ll_pwr.h"

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -128,7 +129,7 @@ static inline void setBackupRegister(uint32_t index, uint32_t value)
#else
LL_RTC_BKP_SetRegister(TAMP, index, value);
#endif
#elif defined(BKPREG1)
#elif defined(PWR_BKP0R)
LL_PWR_BKP_SetRegister(index, value);
#else
UNUSED(index);
Expand All @@ -152,7 +153,7 @@ static inline uint32_t getBackupRegister(uint32_t index)
#else
return LL_RTC_BKP_GetRegister(TAMP, index);
#endif
#elif defined(BKPREG1)
#elif defined(PWR_BKP0R)
return LL_PWR_BKP_GetRegister(index);
#else
UNUSED(index);
Expand Down
Loading