/*****************************************************************************
Copyright(c) 2006 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.1 $
$Date: 2008/03/17 14:50:34 $

Project:	Audio codecs
Title:		system.h
Author(s):	dw
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.1  2008/03/17 14:50:34  gstephan
Updates for SDK 3.00

Revision 1.1  2007/05/22 18:24:38  gstephan
Creating VDSP 5.00 release folder.  Created from the head copy of
VDSP 4.50 release folder.

Revision 1.1  2006/11/10 05:00:09  randreol
Initial rev

Revision 1.1.1.1  2006/05/09 04:01:29  dwu
USB based audio demonstration



*****************************************************************************/

#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>


/****************************************************/
/* global variables 								*/
/****************************************************/

// clock and system power
extern u32 Core_Clock, System_Clock, VCO_Clock;

// coding parameters
// CRUNCH remove
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

//#define DEBUG

#ifdef DEBUG
	#define PRINT_DEBUG(_x_) printf _x_ ;
#else
	#define PRINT_DEBUG(_x_) ;
#endif

#endif // #ifndef SYSTEM__H

