Dear Forum-members,
I am not sur where to post this question so I chose to first post it here.
I use the microZed as a USB-Device, the microzed itself is programmed to act as controller for a drive.
Now it oftne happens that the USB-connection between the microZed and the PC-Card it is connected to crashes. We do not know the cause of these crashes but my idea was to implement an interrupt handler to execute some code to restart the USB-controller whenver a crash occurs.
Now, there is in the xilinx code the following function:
void xusb_cdc_irq_handler(void *callback_ref, u32 mask);
my idea is to populate it with a
XUsbPs_Start(usb);
to restart the USB-controller whenever a crash occurs. Now, does this make sense? Or doe I need more code, to make it work?
Thanks for your help in advance!
Sincerely yours
Silverwhale