Source for libxud_u.a

Technical questions regarding the XTC tools and programming with XMOS.
yhb
Junior Member
Posts: 4
Joined: Thu May 22, 2014 12:05 am

Source for libxud_u.a

Post by yhb »

Hello,

I need to know XUD library deeply for my project. So, I want to see the codes of that libraries and learn with it.
But, I couldn't find the codes for libxud_u.a library anywhere (not only Git hub, but also xtimecomposer).

Where can I get the source codes for libud_u.a library?
At least, I need a source of XUD_Manager function.

BRRead




User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Post by Bianco »

The source code of XUD isn't publicly available.
User avatar
Ross
XCore Expert
Posts: 967
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

What would you like to know?
yhb
Junior Member
Posts: 4
Joined: Thu May 22, 2014 12:05 am

Post by yhb »

Blanco & Ross,

Thank you for your answers.
On my project, I need to implement functions for shutdown & restart the USB module, and switch the FS/HS mode dynamically in restarting process.

So, I want to dig into the XUD_manager.
Thanks,
jerryXCORE
Experienced Member
Posts: 65
Joined: Tue Apr 30, 2013 10:41 pm

Post by jerryXCORE »

Me too!
I even want to develop a USB host/OTG on XMOS processor.

So can we have the source code for XUD library, especially the fundamental operations on ULPI interface of the USB transceiver:
* Read/Write operations at bytes/words level.
* or even better: Read/Write operations at packets/transactions level

Thanks!
User avatar
Ross
XCore Expert
Posts: 967
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

yhb wrote:Blanco & Ross,

Thank you for your answers.
On my project, I need to implement functions for shutdown & restart the USB module, and switch the FS/HS mode dynamically in restarting process.

So, I want to dig into the XUD_manager.
Thanks,
The easiest way to achieve this would be to restart the device (soft reboot) and emulate and un-plug event.

At boot you can they decided whether to run at HS or FS (XUD_Manager() takes a speed param) based on some non-volatile memory or user input.

You could even run separate images if the functionality of the different modes is very different.
yhb
Junior Member
Posts: 4
Joined: Thu May 22, 2014 12:05 am

Post by yhb »

Ross,

Thank you for your suggestion. I'll change our designs as like as you suggested.

But, the limitation of XUD_Manager is really impediment for designing USB products.
I'll issue a request to resolve it via our XMOS supplier.

Thanks,