www.pudn.com > KEA_Driver_Lib_V1.zip > memtest.h, change:2014-03-13,size:1833b


/****************************************************************************** 
* 
* Freescale Semiconductor Inc. 
* (c) Copyright 2013 Freescale Semiconductor, Inc. 
* ALL RIGHTS RESERVED. 
* 
*************************************************************************** 
* 
* THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR 
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
* IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 
* THE POSSIBILITY OF SUCH DAMAGE. 
* 
***************************************************************************//*! 
* 
* @file memtest.h 
* 
* @author Freescale 
* 
* @version 0.0.1 
* 
* @date Jun. 25, 2013 
* 
* @brief provide general-purpose memory testing functions.  
* 
*******************************************************************************/ 
 
#ifndef _memtest_h 
#define _memtest_h 
 
 
/* 
 * Define NULL pointer value. 
 */ 
#ifndef NULL 
#define NULL  (void *) 0 
#endif 
 
/* 
 * Set the data bus width. 
 */ 
typedef unsigned long datum; 
 
/* 
 * Function prototypes. 
 */ 
datum   memTestDataBus(volatile datum * address); 
datum * memTestAddressBus(volatile datum * baseAddress, unsigned long nBytes); 
datum * memTestDevice(volatile datum * baseAddress, unsigned long nBytes); 
 
 
#endif /* _memtest_h */