arduino_midi_player/Midi/music-box-nv32-master/nv32lib/common/memtest.h
2025-03-24 14:30:56 +08:00

33 lines
675 B
C

/******************************************************************************
*
* @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 */