miu_control.c

来自「凌阳SPCE3200 系统开发板随机自带源程序。共安排了32个子目录」· C语言 代码 · 共 27 行

C
27
字号

#include "..\SysLib_Basic\Sys_Global.h"
//#include "..\..\include\SPCE3200_Register.h"
#include "MIU_Control.h"

/**
 * MIU1_Init - initialize MIU1's register
 */
void MIU1_Init(void)
{
	//*P_MIU1_SDRAM_SETTING 	= 0x854020C0;				// MIU1 SDRAM configuration
	*P_TV_BUFFERA_SA1		= 0xa0d00000;				// MIU1 TVE Frame Buffer 1 Start Address
	*P_TV_BUFFERA_SA2		= 0xa0e00000;				// MIU1 TVE Frame Buffer 2 Start Address
	*P_TV_BUFFERA_SA3		= 0xa0f00000;				// MIU1 TVE Frame Buffer 3 Start Address
}

/**
 * MIU2_Init - initialize MIU2's register
 */
void MIU2_Init(void)
{
	*P_MIU_SDRAM_SETUP3 = 0x854020C0;               // MIU2 SDRAM configuration
	*P_TV_BUFFERB_SA1 = 0xa0d00000;				// MIU2 TVE Frame Buffer 1 Start Address
	*P_TV_BUFFERB_SA2 = 0xa0e00000;				// MIU2 TVE Frame Buffer 2 Start Address
	*P_TV_BUFFERB_SA3 = 0xa0f00000;				// MIU2 TVE Frame Buffer 3 Start Address		
}

⌨️ 快捷键说明

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