-
Notifications
You must be signed in to change notification settings - Fork 1.1k
xgpiops_polled_example.c GPIO LED pin for Versal #159
Copy link
Copy link
Open
Description
Hello!
In the xgpiops_polled_example.c, only the Zynq platforms are shown. What is the Output_Pin value for the Versal Development kit's USER GPIO LED? I am having trouble finding it based on the schematics and the register reference.
int GpioPolledExample(u16 DeviceId, u32 *DataRead)
{
int Status;
XGpioPs_Config *ConfigPtr;
int Type_of_board;
/* Initialize the GPIO driver. */
ConfigPtr = XGpioPs_LookupConfig(GPIO_DEVICE_ID);
Type_of_board = XGetPlatform_Info();
switch (Type_of_board) {
case XPLAT_ZYNQ_ULTRA_MP:
Input_Pin = 22;
Output_Pin = 23;
break;
case XPLAT_ZYNQ:
Input_Pin = 14;
Output_Pin = 10;
break;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels