05-28-2014 06:09 AM
I generated an HLS IP with Vivado HLS. I want to insert it in a design which uses Linux.
First I need to initialize it. I guess the appropriate function to use (provided with drivers) is :
int XZoom_Initialize(XZoom *InstancePtr, constchar* InstanceName)
However I don't understand how to call this function.
I wrote :
XZoom XZoom1; // Device instance for the 1st argument
XZoom_Initialize(&XZoom1, ??? ); // Call the function
OS_PRINTF("Zoom init done\r\n");
But what about the 2nd argument, InstanceName? What should I put ?
What I understood is that this argument will be compared to the device name in "/sys/class/uio/uio%d/name" to check if it's the same.
Any help would be highly appreciated !
Thanks & best regards,
05-29-2014 05:07 AM
06-02-2014 05:16 AM
I already integrated the device driver in SDK ! I also read UG871 several times but my question is about the init function that I'm unable to call because of the 2nd argument which I don't understand...can anyone help me ?