?? main.c
字號:
/*
* Copyright 2005 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*
* Not for distribution.
*/
/*
* EMAC 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...\n", ledmask, testname );
/* Call test function */
status = funchandle( );
/* Check for test fail */
if ( status != 0 )
{
/* Print error message */
printf( " FAIL... error code %d... quitting\n", status, testname );
/* Software Breakpoint to Code Composer */
// SW_BREAKPOINT;
}
else
{
/* Print error message */
printf( " PASS\n", testname );
}
}
extern Int16 emac_test( );
/* ------------------------------------------------------------------------ *
* *
* main( ) *
* *
* ------------------------------------------------------------------------ */
void main( void )
{
TEST_execute( emac_test, "EMAC loopback", 1 );
printf( "\n***ALL Tests Passed***\n" );
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -