Example program provided by Embedded Systems Academy, Copyright 2000 Visit www.esacademy.com/faq/progs for more examples This example: MEMTESTLIB - name of application: main.c ==================================================== Demonstration of Michael Barr's Memory Test Library Hardware requirements ===================== Phytec RDK XAC3 with Philips XAC3 Software requirements ===================== Phytec Flash Tools www.phytec.com Raisonance XA compiler system - EVAL version sufficient www.raisonance.com Optional: Development Assistant-C by RistanCASE www.ristancase.ch Tested using ============ Raisonance XA Toolset version 6.1.1 Application description ============================================= This program demonstrates the XA port of the Memory Test Library written by Michael Barr The library consists of four functions: extern datum memTestDataBus(volatile datum far * address); - tests the data bus extern datum far *memTestAddressBus(volatile datum far * baseAddress, unsigned long nBytes); - tests the address bus extern datum far *memTestDevice(volatile datum far * baseAddress, unsigned long nBytes); - tests the memory device extern int memTest(void); - performs all three tests in order and returns a pass or fail result Define the constant _16BITDATABUS in the library source file and header file to test using a 16-bit data bus Undefine the constant _16BITDATABUS in the library source file and header file to test using an 8-bit data bus