system.h

来自「基于visual dsp++开发环境」· C头文件 代码 · 共 58 行

H
58
字号
#ifndef  _SYSTEM_DEFINED
#define _SYSTEM_DEFINED

#include "cdefBF561.h"
#include "ccblkfn.h"
#include <sys\exception.h>


#define TC_PER 			0xFFC00B0C
#define pTC_PER 		(volatile unsigned short *)TC_PER
	

/********************************************************************************/
/***** Multipproject global variables and types								*****/
/********************************************************************************/

// semaphores
extern volatile bool semaphore_frames_received;		// signals to core B that output stream can be started

// DMA buffers for each frame 

extern volatile short sFrame0[];
extern volatile short sFrame1[];
extern volatile short sFrame2[];
extern volatile short sFrame3[];

extern int _CORE;


/********************************************************************************/
/***** Symbolic constants													*****/
/********************************************************************************/

// system constants  

#define CLKIN	  (30.0e6)		// clockin frequency in Hz
#define CORECLK  (600.0e6)		// core clock frequency in Hz
#define SYSCLK	  (120.0e6)		// system clock frequency in Hz


#define DMA_32					// comment out for 16-bit DMA transfers


// Blocksize for each frame
// The block size is split into a lower and an upper word,
// in order to allow for block sizes > 64kwords
// set Upper_Blocksize to 1 if a block size <64kwords is desired

#define Upper_Blocksize 	(128)
#define Lower_Blocksize 	(1024)			// this example defines four blocks of 128Ksamples each

// do not change
#define Block_Size   		(Lower_Blocksize * Upper_Blocksize)


#endif

⌨️ 快捷键说明

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