X<DUT>_Config* X<DUT>_LookupConfig(uintptr BaseAddress);
X<DUT>_Config* X<DUT>_LookupConfig(u16 DeviceId);
This function is used to obtain the configuration information of the
- The BaseAddress as defined in xparameters.h.
- Device ID as defined in xparameters.h.
DeviceId is no longer populated into the driver config struct. Instead
BaseAddress is used to identify the driver
DeviceId will also not be populated
xparameters.h file. Software applications
using these drivers developed in the classic Vitis or
Vitis HLS tools will need to be updated to reflect
this change using
#ifdef SDT as shown in the
#define GPIO_EXAMPLE_DEVICE_ID XPAR_GPIO_0_DEVICE_ID
#define XGPIO_AXI_BASEADDRESS XPAR_XGPIO_0_BASEADDR
A pointer to a
X<DUT>_LookupConfig variable that holds the configuration
information of the specified
BaseAddress or device whose ID is
NULL if no
match is found.