XilinxProcessorIPLib/drivers/tmr_manager/src/xtmr_manager_sinit.c
int XTMR_Manager_Initialize(XTMR_Manager *InstancePtr, u16 DeviceId)
{
	XTMR_Manager_Config *ConfigPtr;

	/*
	 * Assert validates the input arguments
	 */
	Xil_AssertNonvoid(InstancePtr != NULL);

	/*
	 * Lookup the device configuration in the configuration table. Use this
	 * configuration info when initializing this component.
	 */
	ConfigPtr = XTMR_Manager_LookupConfig(DeviceId);

	if (ConfigPtr == (XTMR_Manager_Config *)NULL) {
		return XST_DEVICE_NOT_FOUND;
	}
	return XTMR_Manager_CfgInitialize(InstancePtr, ConfigPtr,
					  ConfigPtr->RegBaseAddr);
}
/****************************************************************************/
/**
*
* Initialize a XTMR_Manager instance.  The receive and transmit FIFOs of the
* core are not flushed, so the user may want to flush them. The hardware
* device does not have any way to disable the receiver such that any valid
* data may be present in the receive FIFO. This function disables the core
* interrupt. The baudrate and format of the data are fixed in the hardware
* at hardware build time.
*
* @param	InstancePtr is a pointer to the XTMR_Manager instance.
* @param	DeviceId is the unique id of the device controlled by this
*		XTMR_Manager instance.  Passing in a device id associates the
*		generic XTMR_Manager instance to a specific device, as chosen by
*		the caller or application developer.
*
* @return
* 		- XST_SUCCESS if everything starts up as expected.
* 		- XST_DEVICE_NOT_FOUND if the device is not found in the
*			configuration table.
*
* @note		None.
*
*****************************************************************************/
Initialize a XTMR_Manager instance.  The receive and transmit FIFOs of the
core are not flushed, so the user may want to flush them. The hardware
device does not have any way to disable the receiver such that any valid
data may be present in the receive FIFO. This function disables the core
interrupt. The baudrate and format of the data are fixed in the hardware
at hardware build time.
Initialize a XTMR_Manager instance . The receive and transmit FIFOs of the core are not flushed so the user may want to flush them . The hardware device does not have any way to disable the receiver such that any valid data may be present in the receive FIFO . This function disables the core interrupt . The baudrate and format of the data are fixed in the hardware at hardware build time .
int XTMR_Manager_Initialize(XTMR_Manager *InstancePtr, u16 DeviceId)
{
	XTMR_Manager_Config *ConfigPtr;
	Xil_AssertNonvoid(InstancePtr != NULL);
	ConfigPtr = XTMR_Manager_LookupConfig(DeviceId);
	if (ConfigPtr == (XTMR_Manager_Config *)NULL) {
		return XST_DEVICE_NOT_FOUND;
	}
	return XTMR_Manager_CfgInitialize(InstancePtr, ConfigPtr,
					  ConfigPtr->RegBaseAddr);
}
int XTMR_Manager_Initialize ( XTMR_Manager * InstancePtr , u16 DeviceId ) { XTMR_Manager_Config * ConfigPtr ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; ConfigPtr = XTMR_Manager_LookupConfig ( DeviceId ) ; if ( ConfigPtr == ( XTMR_Manager_Config * ) NULL ) { return XST_DEVICE_NOT_FOUND ; } return XTMR_Manager_CfgInitialize ( InstancePtr , ConfigPtr , ConfigPtr -> RegBaseAddr ) ; }
Initialize a XTMR_Manager instance.
Initialize a XTMR_Manager instance .
/*
	 * Assert validates the input arguments
	 */ /*
	 * Lookup the device configuration in the configuration table. Use this
	 * configuration info when initializing this component.
	 */