mainb.c

来自「visual dsp++环境下」· C语言 代码 · 共 32 行

C
32
字号
//***********************************************************************
//      Main code for the TigerSHARC EZ-Kit
//      Audio Pass Through example in C
//      MainB.c
//***********************************************************************

//************************* Includes ************************************
//#include <stdio.h>
//#include <sysreg.h>
//#include <builtins.h>
asm("#include <cache_macros.h>");
asm("#include <defts201.h>");

//************************** Main Code *********************************
void main( void )
{
	/* 	for TS201, at the beginning of the program the
   		cache must be enabled. The procedure is contained in the
		cache_enable macro that uses the refresh rate as input parameter
		-if CCLK=500MHz, refresh_rate=750
		-if CCLK=400MHz, refresh_rate=600
		-if CCLK=300MHz, refresh_rate=450
		-if CCLK=250MHz, refresh_rate=375 */
	asm("cache_enable(750);");				// Enable cache for ADSP-TS201 EZ-KIT

    while(1){}                              // And wait in infinite loop
}

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


⌨️ 快捷键说明

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