MSP430ϵͳʵʱʱÖÓRTCѧϰÈÕÖ¾
ʱ¼ä£º11-25
À´Ô´£º»¥ÁªÍø
µã»÷£º
//
// ¶ÁÈ¡RTCʱÖÓ //
// //
//
unsigned long GetTime(void)
{
int hour,minute,second ;
unsigned long time ;
for(;RTCCTL01&RTCRDY;) _NOP() ; // µÈ´ýRTCÓÐЧ
for(;!(RTCCTL01&RTCRDY);) _NOP() ;
hour = GetRTCHOUR() ;
minute = GetRTCMIN() ;
second = GetRTCSEC() ;
time = (unsigned long)hour*1000000
+(unsigned long)minute*1000
+(unsigned long)second ;
return time ;
}
MSP430ϵͳʵʱʱÖÓRT Ïà¹ØÎÄÕ£º
- Windows CE ½ø³Ì¡¢Ï̺߳ÍÄÚ´æ¹ÜÀí(11-09)
- RedHatLinuxÐÂÊÖÈëÃŽ̳Ì(5)(11-12)
- uClinux½éÉÜ(11-09)
- openwebmailV1.60°²×°½Ìѧ(11-12)
- LinuxǶÈëʽϵͳ¿ª·¢Æ½Ì¨Ñ¡ÐÍ̽ÌÖ(11-09)
- Windows CE ½ø³Ì¡¢Ï̺߳ÍÄÚ´æ¹ÜÀí(¶þ)(11-09)