main.c
/*
* Copyright 2005 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*
* Not for distribution.
*/
/*
* LED Test
*
*/
#include "stdio.h"
#include "davincievm.h"
/* ------------------------------------------------------------------------ *
* *
* Testing Function *
* *
* ------------------------------------------------------------------------ */
void TEST_execute( Int16 ( *funchandle )( ), char *testname, Int16 ledmask )
{
Int16 status;
/* Display test ID */
printf( "%02d Testing %s...", ledmask, testname );
/* Call test function */
status = funchandle( );
/* Check for test fail */
if ( status != 0 )
{
/* Print error message */
printf( " FAIL... error code %d... quitting", status, testname );
/* Software Breakpoint to Code Composer */
SW_BREAKPOINT;
}
else
{