rrorStatus RTC_Set_Time(u8 hour,u8 min,u8 sec,u8 ampm)* x- N, d( h" J" J# d' @' h
{6 s5 n0 c$ ~/ d p' m; K& a% T& e
RTC_TimeTypeDef RTC_TimeTypeInitStructure;; R1 R4 G: s0 k6 M' k2 m) P
7 I9 p; p1 F1 r% }3 J$ X RTC_TimeTypeInitStructure.RTC_Hours=hour; $ p' K8 e- g$ M. w# N% L5 b RTC_TimeTypeInitStructure.RTC_Minutes=min;4 F' {. X4 \$ z* M2 f `3 F, U+ W
RTC_TimeTypeInitStructure.RTC_Seconds=sec; ) Y/ U" }1 r" \) _: T RTC_TimeTypeInitStructure.RTC_H12=ampm;
6 H2 C' q) s" O0 \* `, o& S# }
附件:回复后可见!
发达发发发打发士大夫的所说的
haohao ,,,
{6 s5 n0 c$ ~/ d p' m; K& a% T& e
RTC_TimeTypeDef RTC_TimeTypeInitStructure;; R1 R4 G: s0 k6 M' k2 m) P
RTC_TimeTypeInitStructure.RTC_Hours=hour;
RTC_TimeTypeInitStructure.RTC_Minutes=min;4 F' {. X4 \$ z* M2 f `3 F, U+ W
RTC_TimeTypeInitStructure.RTC_Seconds=sec;
RTC_TimeTypeInitStructure.RTC_H12=ampm;