XilinxProcessorIPLib/drivers/tft/src/xtft.c
int XTft_CfgInitialize(XTft *InstancePtr, XTft_Config *ConfigPtr,
			 UINTPTR EffectiveAddr)
{
	/*
	 * Assert validates the input arguments.
	 */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(ConfigPtr != NULL);

	/*
	 * Setup the DeviceId, Video Memory Address and Base Address
	 * from the configuration structure.
	 */
	InstancePtr->TftConfig.DeviceId = ConfigPtr->DeviceId;
	InstancePtr->TftConfig.BaseAddress = EffectiveAddr;
	InstancePtr->TftConfig.VideoMemBaseAddr =
				ConfigPtr->VideoMemBaseAddr;

	/*
	 * Initialize the XTft Instance members to default values.
	 */
	InstancePtr->ColVal = XTFT_DEF_COLVAL;
	InstancePtr->RowVal = XTFT_DEF_ROWVAL;
	InstancePtr->FgColor = XTFT_DEF_FGCOLOR;
	InstancePtr->BgColor = XTFT_DEF_BGCOLOR;

	/*
	 * Indicate the XTft Instance is now ready to use, initialized
	 * without error.
	 */
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;

	/*
	 * Fills the screen with the default background color.
	 */
	XTft_FillScreen(InstancePtr, XTFT_DEF_COLVAL, XTFT_DEF_ROWVAL,
			(XTFT_DISPLAY_WIDTH - 1), (XTFT_DISPLAY_HEIGHT - 1),
			InstancePtr->BgColor);

	return XST_SUCCESS;
}
/***************************************************************************/
/**
*
* This function initializes a TFT Driver Instance.
*
* @param	InstancePtr is a pointer to the XTft instance.
* @param	ConfigPtr is a pointer to a XTft_Config configuration
*		structure.This structure will contain the requested
*		configuration for the device. Typically, this is a local
*		structure and the content of which will be copied into the
*		configuration structure within XTft.
* @param	EffectiveAddr is the device base address in the virtual
*		memory address space. If the address translation is not used
*		then the physical address is passed. Unexpected errors may
*		occur if the address mapping is changed after this function
*		is invoked.
*
* @return
*		- XST_SUCCESS if successful.
*		- XST_FAILURE if unsuccessful.
*
* @note		None.
*
****************************************************************************/
This function initializes a TFT Driver Instance.
This function initializes a TFT Driver Instance .
int XTft_CfgInitialize(XTft *InstancePtr, XTft_Config *ConfigPtr,
			 UINTPTR EffectiveAddr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(ConfigPtr != NULL);
	InstancePtr->TftConfig.DeviceId = ConfigPtr->DeviceId;
	InstancePtr->TftConfig.BaseAddress = EffectiveAddr;
	InstancePtr->TftConfig.VideoMemBaseAddr =
				ConfigPtr->VideoMemBaseAddr;
	InstancePtr->ColVal = XTFT_DEF_COLVAL;
	InstancePtr->RowVal = XTFT_DEF_ROWVAL;
	InstancePtr->FgColor = XTFT_DEF_FGCOLOR;
	InstancePtr->BgColor = XTFT_DEF_BGCOLOR;
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
	XTft_FillScreen(InstancePtr, XTFT_DEF_COLVAL, XTFT_DEF_ROWVAL,
			(XTFT_DISPLAY_WIDTH - 1), (XTFT_DISPLAY_HEIGHT - 1),
			InstancePtr->BgColor);
	return XST_SUCCESS;
}
int XTft_CfgInitialize ( XTft * InstancePtr , XTft_Config * ConfigPtr , UINTPTR EffectiveAddr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( ConfigPtr != NULL ) ; InstancePtr -> TftConfig . DeviceId = ConfigPtr -> DeviceId ; InstancePtr -> TftConfig . BaseAddress = EffectiveAddr ; InstancePtr -> TftConfig . VideoMemBaseAddr = ConfigPtr -> VideoMemBaseAddr ; InstancePtr -> ColVal = XTFT_DEF_COLVAL ; InstancePtr -> RowVal = XTFT_DEF_ROWVAL ; InstancePtr -> FgColor = XTFT_DEF_FGCOLOR ; InstancePtr -> BgColor = XTFT_DEF_BGCOLOR ; InstancePtr -> IsReady = XIL_COMPONENT_IS_READY ; XTft_FillScreen ( InstancePtr , XTFT_DEF_COLVAL , XTFT_DEF_ROWVAL , ( XTFT_DISPLAY_WIDTH - 1 ) , ( XTFT_DISPLAY_HEIGHT - 1 ) , InstancePtr -> BgColor ) ; return XST_SUCCESS ; }
This function initializes a TFT Driver Instance.
This function initializes a TFT Driver Instance .
/*
	 * Assert validates the input arguments.
	 */ /*
	 * Setup the DeviceId, Video Memory Address and Base Address
	 * from the configuration structure.
	 */ /*
	 * Initialize the XTft Instance members to default values.
	 */ /*
	 * Indicate the XTft Instance is now ready to use, initialized
	 * without error.
	 */ /*
	 * Fills the screen with the default background color.
	 */