1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.1.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>Initialization: Overview</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">Initialization: Overview <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<P>When using the TWL-SDK to develop TWL or NITRO applications, always call <A href="OS_Init.html" target="_self"><CODE>OS_Init</CODE></A> first as soon as control shifts to the user's <CODE>NitroMain</CODE> or <CODE>TwlMain</CODE> function. The functions called by <CODE>OS_Init</CODE> are required for proper behavior and cannot be called in any other order.<BR>(In the sample demo <CODE>os/cplusplus-1</CODE>, implemented in C++, the <CODE>OS_Init</CODE> function is called before <CODE>NitroMain</CODE> because memory management needs to be initialized.)</P>
13
14<P>The functions called inside <CODE>OS_Init</CODE> differ depending on whether the system is operating in NITRO or TWL mode. For details, see the <A href="OS_Init.html"><CODE>OS_Init</CODE></A> function.
15</P>
16
17<H2>Main Function</H2>
18<P>In developing for NITRO and TWL, you must prepare the <CODE>NitroMain</CODE> or <CODE>TwlMain</CODE> function as the first function called after shifting control to the user. Although their names are different, there are no particularly major differences between these two functions.<BR>However, you cannot use the <CODE>TwlMain</CODE> function if the ROM type is NITRO ROM.
19</P>
20
21<H2>See Also</H2>
22<P><A href="OS_Init.html"><CODE>OS_Init</CODE></A><BR> <A href="../list_os.html">OS Function List</A></P>
23<H2>Revision History</H2>
24<P>2009/06/18 Added a description of Main.<BR> 2009/06/03 Initial version.</P>
25<hr><p>CONFIDENTIAL</p></body>
26</HTML>