STM32L151 使用cube配置RTC 睡眠喚醒鬧鐘-鬧鐘方式

1、cube配置     2、睡眠喚醒鬧鐘程序:注意鬧鐘必須和時間對應一樣否則無法產生中斷,小編在這入坑,希望幫到其他人; void RTC_PowerLow(void) {     //rtc struct init     RTC_TimeTypeDef sTime = {0};   RTC_DateTypeDef sDate = {0};   RTC_AlarmTypeDef sAlarm
相關文章
相關標籤/搜索