RTC_GetTime(RTC_Format_BIN, &RTC_TimeStructure); printf("\n\r The current time is : %0.2d:%0.2d:%0.2d \n\r", \ RTC_TimeStructure.RTC_Hours, RTC_TimeStructure.RTC_Minutes, RTC_TimeStructure.RTC_Seconds); } /** * @brief Display the current time on the Hyperterminal. * @param ...
int drv_pm_hw_init(void) { static const struct rt_pm_ops _ops = { stm32_sleep, stm32_run, stm32_pm_timer_start, stm32_pm_timer_stop, stm32_pm_timer_get_tick }; rt_uint8_t timer_mask = 0; /* Enable Power Clock */ __HAL_RCC_PWR_CLK_ENABLE(); /* initialize timer mask...