vpe_m.h

来自「基于Linux的ffmepg decoder」· C头文件 代码 · 共 45 行

H
45
字号
#ifndef __VPE_M_H	#define __VPE_M_H	#include "portab.h"	#define VPE 		0x90180000	#ifdef FPGA		#define mVpe_PASS()			\		{							\			printf("VPE pass\n");			\		}		#ifdef ERROR_CONCEALMENT			#define mVpe_FAIL()			\			{							\				printf("VPE fail, start to conceal\n");			\			}		#else			#define mVpe_FAIL()			\			{							\				printf("VPE fail\n");			\			}		#endif//		#define mVpe_Indicator(num)		printf("MPG[0x%x]\n", num);		#define mVpe_Indicator(num)	#else		#define mVpe_PASS()			\		{							\			*(volatile uint32_t *)VPE = 0x01234568;\			*(volatile uint32_t *)VPE = 0x01234567;\		}		#define mVpe_FAIL()			\		{							\			*(volatile uint32_t *)VPE = 0x01234569;\			*(volatile uint32_t *)VPE = 0x01234567;\		}		#define mVpe_Indicator(num)		*(volatile uint32_t *)VPE = num;	#endif#endif /* __VPE_M_H  */

⌨️ 快捷键说明

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