mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
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:
parent
798bf1ade7
commit
84b8924e94
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user