mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
RTCのFOUTの出力セットをRTCリセット検出処理の後で行うよう変更。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/branches/20080724_SDK500rc_branch@2009 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
715a4a4d86
commit
5517f1a4ae
@ -309,15 +309,6 @@ static void ResetRTC( void )
|
||||
RTC_ReadStatus1( &stat1 );
|
||||
RTC_ReadStatus2( &stat2 );
|
||||
|
||||
// FOUTが32KHz出力でない場合は、32KHz出力に修正設定する。(無線で使用している)
|
||||
{
|
||||
RTCRawFout fout;
|
||||
RTC_ReadFout(&fout);
|
||||
if( fout.fout != RTC_FOUT_DUTY_32KHZ ) {
|
||||
fout.fout = RTC_FOUT_DUTY_32KHZ;
|
||||
RTC_WriteFout(&fout);
|
||||
}
|
||||
}
|
||||
// リセット、電源投入、電源電圧低下、ICテストの各フラグを確認
|
||||
if ( stat1.reset || stat1.poc || stat1.bld || stat2.test )
|
||||
{
|
||||
@ -327,7 +318,17 @@ static void ResetRTC( void )
|
||||
sw->flags.common.isResetRTC = TRUE;
|
||||
}
|
||||
|
||||
// RTC初回データ読み込み
|
||||
// FOUTが32KHz出力でない場合は、32KHz出力に修正設定する。(無線で使用している)
|
||||
{
|
||||
RTCRawFout fout;
|
||||
RTC_ReadFout(&fout);
|
||||
if( fout.fout != RTC_FOUT_DUTY_32KHZ ) {
|
||||
fout.fout = RTC_FOUT_DUTY_32KHZ;
|
||||
RTC_WriteFout(&fout);
|
||||
}
|
||||
}
|
||||
|
||||
// RTC初回データ読み込み
|
||||
RTC_ReadDateTime(&sw->Rtc1stData);
|
||||
|
||||
// NTR-IPL同様にアラーム時間をクリア
|
||||
|
||||
Loading…
Reference in New Issue
Block a user