📄 mainb.c
字号:
//***********************************************************************
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -