1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Hardware control related constants</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="MTD NAND Driver Programming Interface"><link rel="up" href="defines.html" title="Chapter 8. Constants"><link rel="prev" href="EEC_selection_constants.html" title="ECC selection constants"><link rel="next" href="Bad_block_table_constants.html" title="Bad block table related constants"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Hardware control related constants</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="EEC_selection_constants.html">Prev</a> </td><th width="60%" align="center">Chapter 8. Constants</th><td width="20%" align="right"> <a accesskey="n" href="Bad_block_table_constants.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="Hardware_control_related_constants"></a>Hardware control related constants</h2></div></div></div><p> 2 These constants describe the requested hardware access function when 3 the boardspecific hardware control function is called 4 </p><pre class="programlisting"> 5/* Select the chip by setting nCE to low */ 6#define NAND_CTL_SETNCE 1 7/* Deselect the chip by setting nCE to high */ 8#define NAND_CTL_CLRNCE 2 9/* Select the command latch by setting CLE to high */ 10#define NAND_CTL_SETCLE 3 11/* Deselect the command latch by setting CLE to low */ 12#define NAND_CTL_CLRCLE 4 13/* Select the address latch by setting ALE to high */ 14#define NAND_CTL_SETALE 5 15/* Deselect the address latch by setting ALE to low */ 16#define NAND_CTL_CLRALE 6 17/* Set write protection by setting WP to high. Not used! */ 18#define NAND_CTL_SETWP 7 19/* Clear write protection by setting WP to low. Not used! */ 20#define NAND_CTL_CLRWP 8 21 </pre><p> 22 </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="EEC_selection_constants.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="defines.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="Bad_block_table_constants.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ECC selection constants </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Bad block table related constants</td></tr></table></div></body></html> 23