1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>CNTInit</title> 9</head> 10 11<body> 12 13<h1>CNTInit</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre><code> 17#include <revolution/cnt.h> 18 19void CNTInit(void); 20</code></pre></dd></dl> 21 22<h2>Arguments</h2> 23<p> 24None. 25</p> 26 27<h2>Return Values</h2> 28<p> 29None. 30</p> 31 32 33<H2>Description</H2> 34<p> 35Initializes the driver. With NAND applications, when using the NAND API to save data or for other purposes, always call <CODE>NANDInit</CODE> first.<br><br><font color=red>In SDK version 2.1 patch 1 and later versions <CODE>NANDInit</CODE> is called automatically by <CODE>OSInit</CODE>.</font> <br><B>Note:</B> 36</p> 37 38<ul> 39<li>This function sometimes puts the current thread to sleep, so it cannot be called from callback functions. Refer to <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>.</li> 40<li>If the <code>CNTInit</code> function is called from a different thread during the processing of the <code>NANDRead[Async]</code> or <code>NANDWrite[Async]</code> functions, the processing of these other functions may be delayed or even fail. (This is also true for <code>CNTRead</code> or any other function that acts internally to generate read/write access to Wii console NAND memory.) For more information about the occurrence conditions, symptoms, and workarounds, see <a href="../nand/intro.html#NAND RW NOTICE">Notes Regarding Read/Writes to Wii Console NAND Memory</a>.</li> 41</ul> 42 43<h2>See Also</h2> 44<p> 45<a href="./intro.html">NADK Introduction</a><br> <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a><br> <a href="../nand/intro.html#NAND RW NOTICE">Notes Regarding Read/Writes to Wii Console NAND Memory</a> 46 47</p> 48<H2>Revision History</H2> 49<p> 502009/12/02 Added the <a href="../nand/intro.html#NAND RW NOTICE">Notes Regarding Read/Writes to Wii Console NAND Memory</a> information.<br>2007/09/12 Added information about the sleep status of threads.<br>2006/12/04 Added a description of <CODE>NANDInit</CODE>.<br>2006/08/15 Initial version. 51</p> 52 53 54<hr><p>CONFIDENTIAL</p></body> 55</html> 56