system.h

来自「使用Usb cy7c68013与DSP通信」· C头文件 代码 · 共 99 行

H
99
字号
/*****************************************************************************
Copyright(c) 2005 Analog Devices, Inc.  All Rights Reserved. This software is 
proprietary and confidential to Analog Devices, Inc. and its licensors.
******************************************************************************

$RCSfile: system.h,v $
$Revision: 1.3 $
$Date: 2005/10/27 07:49:16 $

Project:	Developer Kit
Title:		system.h
Author(s):	ku
Revised by: 

Description:
			System level definitions

References:
			

******************************************************************************
Tab Setting:			4
Target Processor:		ADSP-BF5xx
Target Tools Revision:	ADSP VisualDSP++ v4.0
******************************************************************************

Modification History:
====================
$Log: system.h,v $
Revision 1.3  2005/10/27 07:49:16  dwu
Changed/added ADI headers



*****************************************************************************/

#ifndef SYSTEM__H
#define SYSTEM__H

#include <cplb.h> 					// Required for caching
#include <services/services.h>		// system service includes
#include <drivers/adi_dev.h>		// device manager includes
#include <stdlib.h>
#include <stdio.h>

/****************************************************/
/* debug Macros		 								*/
/****************************************************/

#define DO_CYCLE_COUNTS 		// enables cycle measurements

//#define DEBUG

#ifdef DEBUG
	#define PRINT_DEBUG(_x_) printf _x_ ;
#else
	#define PRINT_DEBUG(_x_) ;
#endif


/****************************************************/
/* Max Allowable Image Sizes		 				*/
/* This size applies only to the decoders			*/
/* The decoder will process any image or motion 	*/
/* sequence up to this size but display only the	*/
/* portion that fits on the screen	 				*/
/* The YUV buffer will contain the entire image		*/
/* The defines below are only due to memory usage	*/
/* You may increase them as you wish 				*/
/* 									 				*/
/* The encoder will necessarily encode only 		*/
/* up to the display size			 				*/
/* 									 				*/
/* Display size is defined in video_656.h			*/
/****************************************************/

#define 	MAX_DECODED_WIDTH		1600
#define 	MAX_DECODED_HEIGTH		1200


/****************************************************/
/* global variables 								*/
/****************************************************/

// clock and system power
extern u32 Core_Clock, System_Clock, VCO_Clock;

// coding parameters
extern int Coding_Algorithm;			// global parameters holding current coding algorithm
extern int Coding_Action;				// global parameters holding current coding direction (encode/decode)

// system services
extern ADI_DCB_HANDLE			DCBManagerHandle;		// handle to the callback service Manager
extern ADI_DMA_MANAGER_HANDLE 	DMAManagerHandle;		// handle to the DMA Manager
extern ADI_DEV_MANAGER_HANDLE 	DeviceManagerHandle;	// handle to the Device Manager

#endif // #ifndef SYSTEM__H

⌨️ 快捷键说明

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