7/6/2023 0 Comments Deepsleep alarm clockSdatestructure.WeekDay = RTC_WEEKDAY_TUESDAY Sdatestructure.Month = RTC_MONTH_FEBRUARY * Set Date: Tuesday February 18th 2014 */ Void HAL_RTC_AlarmAEventCallback(RTC_HandleTypeDef *hrtc) * User can add his own implementation to report the file name and line number,Įx: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ Void assert_failed(uint8_t *file, uint32_t line) * line: assert_param error line source number * where the assert_param error has occurred. * Reports the name of the source file and the source line number * This function is executed in case of error occurrence. * Configure RTC prescaler and RTC data registers as follow: * Enable the fast wake up from Ultra low power mode */ * Automatic Wakeup using RTC clocked by LSI (after ~4s) * VREFINT OFF, with fast wakeup enabled * The system Power is configured as follow : _HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3) Regarding system frequency refer to product datasheet. * The voltage scaling allows optimizing the power consumption when the device isĬlocked below the maximum system frequency, to update the voltage scaling value If (HAL_RCC_ClockConfig(
0 Comments
Leave a Reply. |