//-------------------------------------------------------------------------------
//--    _____
//--   /     \
//--  /____   \____
//-- / \===\   \==/
//--/___\===\___\/  AVNET
//--     \======/   DESIGN
//--      \====/    SERVICES
//-------------------------------------------------------------------------------
//--
//-- Title: 	
//-- Program: 	
//-- Filename:	system.c
//--
//-- FPGA: 		
//-- Author(s):	Nasser Poureh
//-- Date:		
//--
//-- Purpose:
//--
//-- Disclaimer:
//--	Avnet, Inc. makes no warranty for the use of this code or design.  
//--	This code is provided  "As Is". Avnet, Inc assumes no responsibility for 
//--	any errors, which may appear in this code, nor does it make a commitment 
//--	to update the information contained herein. Avnet, Inc specifically 
//--	disclaims any implied warranties of fitness for a particular purpose.
//--       			 Copyright (c) 2005 Avnet, Inc.
//--               			 All rights reserved.
//--
//-------------------------------------------------------------------------------
//-- Revision List
//-- Version		Date		Changes
//-- 1.0					
//--							
//-------------------------------------------------------------------------------


#include "xparameters.h"
#include "xsysace_l.h"



main() {

	int retval;


//	The following printf_uarts a banner on the Hyper Terminal.

	xil_printf("\033[H\033[J"); //clears the screen
	xil_printf(

"*******************************************************************\r\n"
"*                   Memec Virtex-4 FX12 LC Board                  *\r\n"
"*                  SystemACE Controller Self Test                 *\r\n"
"*******************************************************************\r\n"
);

xil_printf("\n\r");



// SystemACE Self Test

	print("\n\r");
	print("1) Testing the SystemACE Controller\n\r");

    retval = XSysAce_SelfTestExample(XPAR_SYSACE_COMPACTFLASH_DEVICE_ID);
    if (retval == 0) {
       print("   SystemACE Controller Self Test PASSED\r\n");
    }
    else {
         print("   SystemACE Controller Self Test FAILED\r\n");
    }


}




 


