twl_wrapsdk/build/tests/os/debugLED/ARM7/src/main.c
yutaka 516a867c68 add debugLED sample
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@259 4ee2a332-4b2b-5046-8439-1ba90f034370
2007-08-29 06:26:29 +00:00

46 lines
1.2 KiB
C

/*---------------------------------------------------------------------------*
Project: TwlSDK - OS - demos - debugLED
File: main.c
Copyright 2007 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.
$Log: main.c,v $
$NoKeywords: $
*---------------------------------------------------------------------------*/
#include <twl.h>
/*---------------------------------------------------------------------------*
Name: TwlMain
Description: main
Arguments: None
Returns: None
*---------------------------------------------------------------------------*/
void TwlMain()
{
int i;
OS_Init();
OS_Printf("ARM7 starts.\n");
OS_InitDebugLED();
for (i = 0; i < 0x100; i++)
{
OS_SetDebugLED((u8)i);
SVC_WaitByLoop(0x20000);
}
// done
OS_TPrintf("\nARM7 ends.\n");
OS_Terminate();
}