⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 result_led.h

📁 OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI的双核处理器
💻 H
字号:

//-------------------------------------------------------------------------------
//            TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
//
//   Property of Texas Instruments, For Unrestricted Internal Use Only
//   Unauthorized reproduction and/or distribution is strictly prohibited.
//   This product is protected under copyright law and trade secret law as an
//   unpublished work.
//   Created 2002, (C) Copyright 2002 Texas Instruments.  All rights reserved.
//
//   Created	   : 19th of August, 2002, 10.00pm
//
//   Filename        : result_led.h
//
//   Description     : Header file for the ARM OMAP1610 Simulation End functions
//
//   Project         : Neptune
//
//   Author          : Eric Delfosse
//
//   FUNCTIONS PROVIDED:
//
//   void LED_ResSet(const UWORD16 status)
//   UWORD16 LED_ResGetFinal(void)      => Evaluate Final Result
//   void LED_ResSetLocation(const UWORD32 start_address)   => Set location address of the result area
//   void LED_ResInitResult(void)
//   void LED_ResEndSimulation(void)
//   void LED_ResStopVhdl(void)     => Stop VHDL simulator
//   void LED_ResStopDpllVhdl(void)     => Stop DPLL & VHDL sims, wait 4 Dump LED
//   UWORD16 LED_ResGetCurrentRes2(UWORD16 TestPassedSuccessfuly)     => combined test exception handler
//
//-------------------------------------------------------------------------------

#ifndef _RESULT_LED_Res__HH
#define _RESULT_LED_Res__HH

//#include <stdio.h>
//#include <assert.h>
#include "errorcodes.h"

#define RESULT_SIZE        128      //size of result
#define LAST_ITEM_POS     (RESULT_SIZE - 1)

//#define DATA_STORE               0xF000
// The words which follows are data until we meet the END_ARRAY_DATA
//#define START_ARRAY_DATA         0xF001 //findspy|print|$==$Start array of data&@|startarray|
//#define END_ARRAY_DATA           0xF002 //findspy|print|End array of data&@$==$|endarray|
//#define START_ARRAY_DATA_RESET   0xF003 //findspy|print|$==$Start array of data&@|startarray|
//#define START_ARRAY_DATA_ACCESS  0xF004 //findspy|print|$==$Start array of data&@|startarray|
// An easy way to see that a test part succeed
#define TEST_OK                  0x8000 //findspy|print|Test OK&@|
// So, you look at the test part status. If the test part is OK it has the value TEST_OK (8000)

#define TEST_RESET_VALUE_SEPARATOR 0xAAA0 //findspy|print|$==$End of test reset value&@$==$
#define TEST_MODULE_SEPARATOR      0xAAA1 //findspy|print|$==$End of test module&@$==$
#define DATAEXPECTED_DATAREAD      0xAAA2 //findspy|2data|Data expected&@:|Data read&@:|
// An easy way to see that we change of section in a big test
//#define RESULT_SEPARATOR           0xAAAA //findspy|print|$==$Result Separator&@$==$|
#define GLOBAL_TEST_SEPARATOR      0xAAAF //findspy|print|$==$End of Global test&@$==$

// Add a new range of test OK(The values Min and Max are outside of the bounds).
// These 2 values should not be used as they create some conflicts with findspy.
#define MIN_ARRAY_OK               0x77FF
#define MAX_ARRAY_OK               0x7FFF  // 0x7FFF - 0x77FF == 800 -> 2KBytes

#define RES_NOT_TRIED       0x0
#define RES_OK              0x1       //findspy|print|Test OK&@|
#define RES_BAD             0x2       //findspy|print|ERROR !
// Atleast one problem noticed by spy&@|
#define CURRENT_RES_NOT_OK  0x3       //findspy|print|Sorry !
// current test did not pass&@|
#define RES_THE_END         0xFFFF
#define RES_INIT_VAL        0xBABE
#define RES_ABORT_DATA 	    0xAB0D
#define ABORT_ERROR         0x7FFF

void LED_ResSet(const UWORD16 status);
UWORD16 LED_ResGetFinal(void);
void LED_ResSetLocation(const UWORD32 start_address);
void LED_ResInitResult(void);
void LED_ResEndSimulation(void);
void LED_ResStopVhdl(void);
void LED_ResStopDpllVhdl(void);
//UWORD16 RES_GetCurrentRes2(UWORD16 TestPassedSuccessfuly);

#endif

// END OF FILE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -