20080724_SDK500rc_branchの変更をマージ。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2022 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yosiokat 2008-07-29 12:18:06 +00:00
parent 03c2cb9601
commit 6c5dfc420d
7 changed files with 46 additions and 41 deletions

View File

@ -309,15 +309,6 @@ static void ResetRTC( void )
RTC_ReadStatus1( &stat1 ); RTC_ReadStatus1( &stat1 );
RTC_ReadStatus2( &stat2 ); 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テストの各フラグを確認 // リセット、電源投入、電源電圧低下、ICテストの各フラグを確認
if ( stat1.reset || stat1.poc || stat1.bld || stat2.test ) if ( stat1.reset || stat1.poc || stat1.bld || stat2.test )
{ {
@ -327,7 +318,17 @@ static void ResetRTC( void )
sw->flags.common.isResetRTC = TRUE; 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); RTC_ReadDateTime(&sw->Rtc1stData);
// NTR-IPL同様にアラーム時間をクリア // NTR-IPL同様にアラーム時間をクリア

View File

@ -10,8 +10,8 @@
not be disclosed to third parties or copied or duplicated in any form, not be disclosed to third parties or copied or duplicated in any form,
in whole or in part, without the prior written consent of Nintendo. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-07-25#$ $Date:: 2008-07-28#$
$Rev: 1994 $ $Rev: 2005 $
$Author: yutaka $ $Author: yutaka $
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <twl/mi.h> #include <twl/mi.h>

View File

@ -468,18 +468,8 @@ static TitleProperty *SYSMi_CheckShortcutBoot2( void )
argument = 100; // フラッシュ壊れシーケンス起動 argument = 100; // フラッシュ壊れシーケンス起動
isSetArgument = TRUE; isSetArgument = TRUE;
isBootMSET = TRUE; isBootMSET = TRUE;
}
//-----------------------------------------------------
// TWL設定データ未設定時の初回起動シーケンス起動
//-----------------------------------------------------
else if( !LCFG_TSD_IsFinishedInitialSetting() ) {
argument = 0;
isSetArgument = FALSE;
isBootMSET = TRUE;
}else }else
#endif #endif
//----------------------------------------------------- //-----------------------------------------------------
// L+R+Startボタン押下起動で、本体設定のタッチパネル設定を起動 // L+R+Startボタン押下起動で、本体設定のタッチパネル設定を起動
//----------------------------------------------------- //-----------------------------------------------------
@ -489,7 +479,17 @@ static TitleProperty *SYSMi_CheckShortcutBoot2( void )
isSetArgument = TRUE; isSetArgument = TRUE;
isBootMSET = TRUE; isBootMSET = TRUE;
} }
#ifndef DISABLE_INITIAL_SETTINGS
//-----------------------------------------------------
// TWL設定データ未設定時の初回起動シーケンス起動
//-----------------------------------------------------
else if( !LCFG_TSD_IsFinishedInitialSetting() ) {
argument = 0;
isSetArgument = FALSE;
isBootMSET = TRUE;
}
#endif
//----------------------------------------------------- //-----------------------------------------------------
// ランチャー画面を表示しないバージョンの場合 // ランチャー画面を表示しないバージョンの場合
// カードがささっていたらカードを起動する // カードがささっていたらカードを起動する

View File

@ -20,6 +20,7 @@
#include <twl/dsp/common/g711.h> #include <twl/dsp/common/g711.h>
#include <twl/camera.h> #include <twl/camera.h>
#include <sysmenu/errorLog.h> #include <sysmenu/errorLog.h>
#include <nitro/crypto.h>
#include "launcher.h" #include "launcher.h"
#include "misc.h" #include "misc.h"
#include "logoDemo.h" #include "logoDemo.h"
@ -177,6 +178,9 @@ void TwlMain( void )
SYSM_Init( Alloc, Free ); // OS_Initの前でコールする必要あり。 SYSM_Init( Alloc, Free ); // OS_Initの前でコールする必要あり。
OS_Init(); OS_Init();
SYSM_SetArena(); // OS_Initの後でコールする必要あり。 SYSM_SetArena(); // OS_Initの後でコールする必要あり。
// CRYPTOライブラリ初期化---------- 2008.07.24 ESライブラリがCRYPTOを使用するようになったので、この処理が必要。
CRYPTO_SetAllocator( Alloc, Free );
// ColdStart時は、ロゴデモが終わるまでは、HWリセットボタンによるHotBootフラグセットを抑制する。 // ColdStart時は、ロゴデモが終わるまでは、HWリセットボタンによるHotBootフラグセットを抑制する。
// (「健康と安全」画面を必ず表示するため) // (「健康と安全」画面を必ず表示するため)

View File

@ -22,28 +22,28 @@
# 現在、製品版の証明書を含んだものは生成しない # 現在、製品版の証明書を含んだものは生成しない
override TARGET_PLATFORM := TWL override TARGET_PLATFORM := TWL
override TWL_ARCHGEN := LIMITED override TWL_ARCHGEN := LIMITED
TARGET_FIRM = SYSTEMMENU TARGET_FIRM = SYSTEMMENU
TWL_NANDAPP = TRUE TWL_NANDAPP = TRUE
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
include ./commondefs.sysmenuVersion include ./commondefs.sysmenuVersion
REGION ?= A REGION ?= A
DST_DIR = dev DST_DIR = dev
# タイムスタンプ # タイムスタンプ
VER_TIMESTAMP = 08062300 VER_TIMESTAMP = 08062300
# システムメニューバージョン # システムメニューバージョン
MAJOR_VERSION = 0 MAJOR_VERSION = 0
MINOR_VERSION = 1 MINOR_VERSION = 1
STR_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION)$(REGION) STR_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION)$(REGION)
# ユーザー領域サイズ(=128MB) # ユーザー領域サイズ(=128MB)
USER_AREA_SIZE = 134217728 USER_AREA_SIZE = 134217728
# NUPホストネーム # NUPホストネーム
NUP_HOSTNAME = nus.t.shop.nintendowifi.net:443 NUP_HOSTNAME = nus.t.shop.nintendowifi.net:443
@ -51,22 +51,22 @@ NUP_HOSTNAME = nus.t.shop.nintendowifi.net:443
# EULAのURL # EULAのURL
EULA_URL = https://cfh.t.app.nintendowifi.net/eula/ EULA_URL = https://cfh.t.app.nintendowifi.net/eula/
GEN_VERSION_PARAM = $(DST_DIR) $(VER_TIMESTAMP) $(STR_VERSION) $(MAJOR_VERSION) $(MINOR_VERSION) \ GEN_VERSION_PARAM = $(DST_DIR) $(VER_TIMESTAMP) $(STR_VERSION) $(MAJOR_VERSION) $(MINOR_VERSION) \
$(USER_AREA_SIZE) $(NUP_HOSTNAME) $(EULA_URL) $(USER_AREA_SIZE) $(NUP_HOSTNAME) $(EULA_URL)
GEN_VERSION_FILE = $(SYSMENU_TOOLSDIR)/bin/genVersion.plx GEN_VERSION_FILE = $(SYSMENU_TOOLSDIR)/bin/genVersion.plx
VERSION_TAD = HNL$(REGION).tad VERSION_TAD = HNL$(REGION).tad
ifneq ($(TWL_IPL_RED_PRIVATE_ROOT),) ifneq ($(TWL_IPL_RED_PRIVATE_ROOT),)
VERSION_DAT = $(SYSMENU_VERSION_FILE) VERSION_DAT = $(SYSMENU_VERSION_FILE)
endif endif
TARGETS += $(VERSION_TAD) TARGETS += $(VERSION_TAD)
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
LDIRT_CLEAN = $(VERSION_TAD) properties LDIRT_CLEAN = $(VERSION_TAD) properties
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------