DEBUG_LAUNCHER_DUMPがdefineされている場合のみ

Launcher起動時、特定のメモリ領域をSDカードにdumpするように変更

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@489 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yoshida_teruhisa 2008-01-18 07:17:47 +00:00
parent 798bf1ade7
commit 84b8924e94

View File

@ -42,6 +42,7 @@ static StreamInfo strm; // stream info
const char filename[] = "data/fanfare.32.wav"; const char filename[] = "data/fanfare.32.wav";
#ifdef DEBUG_LAUNCHER_DUMP
// デバグ用。SDに0x02ffc000から0x02ffe000までdump.datというダンプを吐く // デバグ用。SDに0x02ffc000から0x02ffe000までdump.datというダンプを吐く
static void debugWriteToSD( void ) static void debugWriteToSD( void )
{ {
@ -53,6 +54,7 @@ static void debugWriteToSD( void )
if ( !FS_CloseFile( &dest ) ) return; if ( !FS_CloseFile( &dest ) ) return;
OS_TPrintf( "debugWriteToSD:ok\n"); OS_TPrintf( "debugWriteToSD:ok\n");
} }
#endif
// メイン // メイン
void TwlMain( void ) void TwlMain( void )
@ -84,9 +86,11 @@ void TwlMain( void )
(void)OS_EnableInterrupts(); (void)OS_EnableInterrupts();
FS_Init( FS_DMA_NOT_USE ); FS_Init( FS_DMA_NOT_USE );
#ifdef DEBUG_LAUNCHER_DUMP
// debug // debug
debugWriteToSD(); debugWriteToSD();
#endif
GX_Init(); GX_Init();
PM_Init(); PM_Init();