XilinxProcessorIPLib/drivers/tft/src/xtft.c
void XTft_SetFrameBaseAddr(XTft *InstancePtr, UINTPTR NewFrameBaseAddr)
{
	/*
	 * Assert validates the input arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid((NewFrameBaseAddr & 0x1FFFFF) == 0x0);

	if (InstancePtr->TftConfig.AddrWidth > 32 ) {

		/* Write to the  Address (Video memory) MSB Register */
		XTft_WriteReg(InstancePtr, XTFT_AR_MSB_OFFSET,
					UPPER_32_BITS(NewFrameBaseAddr));

		/* Write to the  Address (Video memory) LSB Register */
		XTft_WriteReg(InstancePtr, XTFT_AR_LSB_OFFSET,
				(u32)(NewFrameBaseAddr & 0xFFFFFFFF));
	} else {

		/* Write to the  Address (Video memory) LSB Register */
		XTft_WriteReg(InstancePtr, XTFT_AR_OFFSET, NewFrameBaseAddr);
	}

	/*
	 * Update the Instance structure member.
	 */
	InstancePtr->TftConfig.VideoMemBaseAddr =  NewFrameBaseAddr;

}
/***************************************************************************/
/**
*
* This function changes the Video Memory Base address stored in the Address
* Register.
*
* @param	InstancePtr is a pointer to the XTft instance.
* @param 	NewFrameBaseAddr is the new memory address value to be
*		written to the Address register.
*
* @return	None.
*
* @note		The new memory address must be in the address range of
*		external memory and it must be taken care that 2MB memory is
*		available from this new address so that frame data to 640*480
*		screen can be written.
*
****************************************************************************/
This function changes the Video Memory Base address stored in the Address
Register.
This function changes the Video Memory Base address stored in the Address Register .
void XTft_SetFrameBaseAddr(XTft *InstancePtr, UINTPTR NewFrameBaseAddr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid((NewFrameBaseAddr & 0x1FFFFF) == 0x0);
	if (InstancePtr->TftConfig.AddrWidth > 32 ) {
		XTft_WriteReg(InstancePtr, XTFT_AR_MSB_OFFSET,
					UPPER_32_BITS(NewFrameBaseAddr));
		XTft_WriteReg(InstancePtr, XTFT_AR_LSB_OFFSET,
				(u32)(NewFrameBaseAddr & 0xFFFFFFFF));
	} else {
		XTft_WriteReg(InstancePtr, XTFT_AR_OFFSET, NewFrameBaseAddr);
	}
	InstancePtr->TftConfig.VideoMemBaseAddr =  NewFrameBaseAddr;
}
void XTft_SetFrameBaseAddr ( XTft * InstancePtr , UINTPTR NewFrameBaseAddr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( ( NewFrameBaseAddr & 0x1FFFFF ) == 0x0 ) ; if ( InstancePtr -> TftConfig . AddrWidth > 32 ) { XTft_WriteReg ( InstancePtr , XTFT_AR_MSB_OFFSET , UPPER_32_BITS ( NewFrameBaseAddr ) ) ; XTft_WriteReg ( InstancePtr , XTFT_AR_LSB_OFFSET , ( u32 ) ( NewFrameBaseAddr & 0xFFFFFFFF ) ) ; } else { XTft_WriteReg ( InstancePtr , XTFT_AR_OFFSET , NewFrameBaseAddr ) ; } InstancePtr -> TftConfig . VideoMemBaseAddr = NewFrameBaseAddr ; }
This function changes the Video Memory Base address stored in the Address
Register.
This function changes the Video Memory Base address stored in the Address Register .
/*
	 * Assert validates the input arguments.
	 */ /* Write to the  Address (Video memory) MSB Register */ /* Write to the  Address (Video memory) LSB Register */ /* Write to the  Address (Video memory) LSB Register */ /*
	 * Update the Instance structure member.
	 */