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

📄 main.c

📁 ADI-BF533 DSP cache的配置代码
💻 C
字号:
/************************************************************/
/*	This code demonstrate VDSP++ compiler support for the 	*/
/*	BF instruction and Data Cache							*/
/*															*/
/*	The cplbtab533.s is the default CPLB configuration file */
/*	available with VDSP++ installation. We have included	*/
/*	this file in the project. Any changes done to the 		*/
/*	CPLB configuratin in this file, will reflect in the 	*/
/*	application												*/
/*															*/
/*							Initial Version					*/
/*							Kunal Singh						*/
/*							DSP applications, ADI			*/					
/*							Dated 7 June, 2005				*/
/*															*/
/************************************************************/

#include<cdefbf533.h>
#include <stdio.h>
#include <string.h>

#include <cplb.h>

#define __IMG__ 
#ifdef __IMG__
	//图像解码参数入口
	extern int 	iProcImgMain(void);
	extern void vIniParam(unsigned char* g_mem0);
#endif 
 
#pragma retain_name 
int __cplb_ctrl = 
	CPLB_ENABLE_ICPLBS|
    CPLB_ENABLE_ICACHE|
    CPLB_ENABLE_DCPLBS|
    CPLB_ENABLE_DCACHE|
    CPLB_ENABLE_DCACHE2; 
    
/*****************/
/* main function */
/*****************/    
void main()
{
	int i;
	unsigned char pSDRAM[640*480];
	
	
	
	//memset(pSDRAM, 0, sizeof(pSDRAM));
	sprintf(pSDRAM, "\n111\n");
	printf("%s",pSDRAM);
	printf("\nTest start\n");
	
#ifdef __IMG__
	vIniParam((unsigned char *)pSDRAM);
	i = iProcImgMain();
#endif
}

⌨️ 快捷键说明

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