mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2748 b08762b0-b915-fc4b-9d8c-17b2551a87ff
69 lines
2.1 KiB
C
69 lines
2.1 KiB
C
/*---------------------------------------------------------------------------*
|
|
Project: TwlSDK - nandApp - demos - launcher_param - ExecTmpApp
|
|
File: main.c
|
|
|
|
Copyright 2007-2008 Nintendo. All rights reserved.
|
|
|
|
These coded instructions, statements, and computer programs contain
|
|
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
Company Ltd., and are protected by Federal copyright law. They may
|
|
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.
|
|
|
|
$Date:: $
|
|
$Rev$
|
|
$Author$
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
#include <twl.h>
|
|
#include "misc_simple.h"
|
|
#include "ExecTmpApp.h"
|
|
|
|
// extern data-----------------------------------------------------------------
|
|
|
|
// define data-----------------------------------------------------------------
|
|
|
|
// function's prototype-------------------------------------------------------
|
|
static void INTR_VBlank( void );
|
|
|
|
// global variable-------------------------------------------------------------
|
|
|
|
// static variable-------------------------------------------------------------
|
|
BOOL g_isValidTSD;
|
|
|
|
// const data------------------------------------------------------------------
|
|
|
|
|
|
// ============================================================================
|
|
// function's description
|
|
// ============================================================================
|
|
void TwlMain(void)
|
|
{
|
|
myInit();
|
|
|
|
ExecTmpAppInit();
|
|
// メインループ----------------------------
|
|
while(1){
|
|
|
|
myPreMain();
|
|
|
|
ExecTmpAppMain();
|
|
|
|
myProMain();
|
|
|
|
OS_WaitIrq(1, OS_IE_V_BLANK); // Vブランク割り込み待ち
|
|
}
|
|
}
|
|
|
|
|
|
// ============================================================================
|
|
// 割り込み処理
|
|
// ============================================================================
|
|
|
|
// Vブランク割り込み
|
|
static void INTR_VBlank(void)
|
|
{
|
|
OS_SetIrqCheckFlag(OS_IE_V_BLANK); // Vブランク割込チェックのセット
|
|
}
|
|
|