dspstart.h

来自「OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI」· C头文件 代码 · 共 98 行

H
98
字号
//===============================================================================
//            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 2001, (C) Copyright 2001 Texas Instruments.  All rights reserved.
//
//===============================================================================

#ifndef __DSPSTART_H__
#define __DSPSTART_H__


#include "dsp_mmu_mapping.h"

#include "mmu.h"
#include "api.h"
#include "mailbox.h"

#define TIMEOUT_DSP2ARM_MB1 0x400

#ifndef DSP_LIVE_A
	#define DSP_LIVE_A					0x1ead
#endif

#ifndef DSP_LIVE_B
	#define	DSP_LIVE_B					0x0003
#endif

#ifndef DSP_DEAD
	#define	DSP_DEAD					0x0001
#endif

#ifndef DSP_RUNNING
	#define	DSP_RUNNING					0x0000
#endif

#ifndef DSP_TEST_FAILED
	#define	DSP_TEST_FAILED				0xDEAD
#endif

#ifndef DSP_TEST_PASSED
	#define DSP_TEST_PASSED				0xAAAA
#endif

#ifndef DSP_TEST_OK
	#define	DSP_TEST_OK					0
#endif

#ifndef DSP_TEST_BAD
	#define	DSP_TEST_BAD				1
#endif


extern UWORD16 dspmbx_rega;
extern UWORD16 dspmbx_regb;
extern UWORD16 count_mb1_int;
extern UWORD16 do__sync;


//------------------------------------------------------------------------------
// dsp_out_of_reset : Enable DSP clocks and Release DSP from reset
//                    Function start DSP and wait Alive message.
//                    If there is no message, Function return error.
//                    If message is received correctly, function return OK.
//------------------------------------------------------------------------------
UWORD16 DSPST_DspStart(void);

//------------------------------------------------------------------------------
// DSPST_InitDspMmu : Program DSP MMU according to the test_mapping.h
//
//		  Note:	DSP clock MUST BE ON before call to this function
//
//------------------------------------------------------------------------------
void DSPST_InitDspMmu( void );

//------------------------------------------------------------------------------
// dsp_setup_clkrst: Enable DSP, API and MMU clocks and resets
//------------------------------------------------------------------------------
void dsp_setup_clkrst(void);

//------------------------------------------------------------------------------
// dsp_run : Release DSP from Reset
//------------------------------------------------------------------------------
UWORD16 dsp_run(UWORD16 arm_synchronized);

//------------------------------------------------------------------------------
// download_dsp_code: Download DSP code through API ( internal and external )
//------------------------------------------------------------------------------
UWORD16 download_dsp_code(void *dsp_code);

#endif /* __DSPSTART_H__ */


⌨️ 快捷键说明

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