/*
* Copyright 2008 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* EVMOMAPL137 Test Suite
*
*/
#include "stdio.h"
#include "evmomapl137.h"
/* ------------------------------------------------------------------------ *
* *
* Testing Function *
* *
* ------------------------------------------------------------------------ */
void TEST_execute( Int16 ( *funchandle )( ), char *testname, Int16 testid )
{
Int16 status;
/* Display test ID */
printf( "%02d Testing %s...\n", testid, testname );
/* Call test function */
status = funchandle( );
/* Check for test fail */
if ( status != 0 )
{
/* Print error message */
printf( " FAIL... error code %d... quitting\n", status );
/* Software Breakpoint to Code Composer */
SW_BREAKPOINT;
}
else
{
/* Print error message */
printf( " PASS\n" );
}
}
extern Int16 emac_test( );
/* ------------------------------------------------------------------------ *
* *
* main( ) *
* *
* ------------------------------------------------------------------------ */
void main( void )
{
/* Initialize OMAPL137*/
EVMOMAPL137_init( );
TEST_execute( emac_test, "Ethernet RMII loopback", 1 );
printf( "\n***ALL Tests Passed***\n" );
SW_BREAKPOINT;
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
emac_loopback.rar (15个子文件)
emac_loopback
emac_loopback.sbl 6KB
main.c 2KB
emac_loopback.paf2 3KB
Debug.lkf 776B
emac_loopback.pjt 1KB
Debug
emac_loopback.out 178KB
emac_loopback.map 19KB
main.obj 6KB
cc_build_Debug.log 770B
emac_loopback.CS_
SYMBOL.DBF 46KB
FILE.CDX 3KB
FILE.FPT 1006B
FILE.DBF 504B
SYMBOL.FPT 80KB
SYMBOL.CDX 69KB
共 15 条
- 1
资源评论
寒泊
- 粉丝: 74
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功