STM32F4
static u32 tmp_yy = 0x09, tmp_m2 = 0x01, tmp_dd = 0x01,tmp_ww=0x01;
RTC_DateStructure.RTC_WeekDay = tmp_ww; // RTC_Weekday_Monday;
RTC_DateStructure.RTC_Date = tmp_dd;
RTC_DateStructure.RTC_Month = tmp_m2; //RTC_Month_January;
RTC_DateStructure.RTC_Year = tmp_yy;
RTC_DateStructInit(&RTC_DateStructure);
为什么打印出来的Year总是 0 呢?
|