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

📄 dspstart.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 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -