?? processorversion_test.c
字號:
/*****************************************************************************
** **
** Name: ProcessorVersion.c **
** **
******************************************************************************
(C) Copyright 2004 - Analog Devices, Inc. All rights reserved.
Pjoject Name: 21369/21375 POST
Date Modified: 01Sept05 Ver 0.0
Software: VisualDSP++ 4.5
Hardware: ADSP-21369/21375 EZ-KIT Lite
Connections:
Purpose: To test the processor version agaisnt the software build
*****************************************************************************/
//--------------------------------------------------------------------------//
// Function: int TestVersion(void) //
// //
// Parameters: None //
// //
// Return: 0 indicates a failure - the processor does not match the //
// version the software was built for //
// 1 indicates a pass - the processor and software versions //
// both match //
// //
// Description: This function compares the version of the processor being //
// run on with the version that the software was built against //
// //
// Purpose: The reason for this test is because the build tools work- //
// around various silicon anomalies, by not checking to see //
// if the software is built for this particular processor //
// version, a risk that an anomaly will not be worked around //
// correctly.
//--------------------------------------------------------------------------//
int TEST_VERSION(void)
{
if( __SILICON_REVISION__ != 0 )
{
return 0; // failed
}
else
{
return 1; // passed
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -