configdai.asm

来自「一段ADSP21262用DAI口实现UART通讯的汇编源代码。」· 汇编 代码 · 共 32 行

ASM
32
字号
#include <sru.h>
#include <def21262.h>

// This function will setup the SRU Registers
.section /pm seg_pmco ; 
.global InitSRU ;
InitSRU :

	// Enable pull-up resistors on unused DAI pins
	r0 = 0xfbcff;
	dm(DAI_PIN_PULLUP) = r0;

	//Generating Code for connecting : SPORT1_DA to DAI_PIN9
	SRU (HIGH, PBEN09_I); 
	SRU (SPORT1_DA_O, DAI_PB09_I); 

	//Generating Code for connecting : SPORT3_CLK to DAI_PIN15
	SRU (HIGH, PBEN15_I); 
	SRU (SPORT3_CLK_O, DAI_PB15_I); 

	//Generating Code for connecting : DAI_PIN10 to SPORT3_FS
	SRU (LOW, PBEN10_I); 
	SRU (DAI_PB10_O, SPORT3_FS_I); 

	//Generating Code for connecting : DAI_PIN10 to SPORT3_DB
	SRU (LOW, PBEN10_I); 
	SRU (DAI_PB10_O, SPORT3_DB_I); 

	// Return back from the subroutine
	rts;
InitSRU.end:

⌨️ 快捷键说明

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