encode_mpeg_init.asm

来自「adi bf533视频编码程序」· 汇编 代码 · 共 50 行

ASM
50
字号
#include <defBF533.h>

.extern     _ppi_dma_disable;
.extern     _videoin_dma;
.extern     _PPI_STOP;
.extern     _BF533_EZ_KIT_ISR_Config;
.extern 	_ppi_dma_ini;
.extern 	_ppi_dma_en;
.extern 	_BF533_EZ_KIT_PPI_Config;

.section L1_data_b;
.align 4;
//.global _refwin;
.global _MBy_match_16x16;
.global _MBy_match_4x8x8;
.global _MBy_match_uv;
//.byte _refwin[48*48];
.byte _MBy_match_16x16[256];
.byte _MBy_match_4x8x8[256];
.byte _MBy_match_uv[128];


.section L1_code;

.global _encode_mpeg_init;
_encode_mpeg_init:
	[--sp]=(r7:4,p5:3);
	[--sp]=rets;

	CALL _PPI_STOP;
	CALL _ppi_dma_disable;
	CALL _BF533_EZ_KIT_ISR_Config;	//Configure the Interrupt service routine
	//CALL BF533_EZ_KIT_SDRAM_Config;	//Configure the SDRAM
//	CALL _videoin_dma;
	CALL _ppi_dma_ini;
	CALL _ppi_dma_en;
	CALL _BF533_EZ_KIT_PPI_Config;	//start PPI module
	
	//CALL _BF533_EZ_KIT_DMA_Config_jpeg;	//Configure the DMA in Stop Mode
	//Configure the PPI 8bit, ITU-656 mode, Input Mode, Active Field Only......
	//CALL _BF533_EZ_KIT_PPI_Config_jpeg;	


	rets = [sp++];
	(r7:4,p5:3) = [sp++];
_encode_mpeg_init.end:
rts;    
    

⌨️ 快捷键说明

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