Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Examples_LL/RTC/RTC_Alarm_Init/Src/main.c')
-rw-r--r--Projects/P-NUCLEO-WB55.Nucleo/Examples_LL/RTC/RTC_Alarm_Init/Src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Examples_LL/RTC/RTC_Alarm_Init/Src/main.c b/Projects/P-NUCLEO-WB55.Nucleo/Examples_LL/RTC/RTC_Alarm_Init/Src/main.c
index ed7bcbe6a..970385c3b 100644
--- a/Projects/P-NUCLEO-WB55.Nucleo/Examples_LL/RTC/RTC_Alarm_Init/Src/main.c
+++ b/Projects/P-NUCLEO-WB55.Nucleo/Examples_LL/RTC/RTC_Alarm_Init/Src/main.c
@@ -248,6 +248,9 @@ void SystemClock_Config(void)
/* Update CMSIS variable (which can be updated also through SystemCoreClockUpdate function) */
LL_SetSystemCoreClock(16000000);
+ /* USER CODE BEGIN Smps */
+
+ /* USER CODE END Smps */
}
/**
@@ -279,13 +282,11 @@ static void MX_RTC_Init(void)
RTC_TimeStruct.Hours = 0x11;
RTC_TimeStruct.Minutes = 0x59;
RTC_TimeStruct.Seconds = 0x55;
-
LL_RTC_TIME_Init(RTC, LL_RTC_FORMAT_BCD, &RTC_TimeStruct);
RTC_DateStruct.WeekDay = LL_RTC_WEEKDAY_FRIDAY;
RTC_DateStruct.Month = LL_RTC_MONTH_DECEMBER;
RTC_DateStruct.Day = 0x29;
RTC_DateStruct.Year = 0x16;
-
LL_RTC_DATE_Init(RTC, LL_RTC_FORMAT_BCD, &RTC_DateStruct);
/** Enable the Alarm A
*/