1.5. Linking

Binary library objects are provided for both application and module linking. Libraries intended to be linked with modules have the standard "zM" suffix. The libraries can be referenced using <usb$link> environment variable.

Two versions of the library have been provided, the first "std-lib" uses standard SWI calls to communicate with the USB stack with all the associated overheads this version is usable either from application code or module code. The second type "fast-lib" allows module drivers to avoid the overhead of the SWI calls and use a direct calling interface which give a performance increase. Provided the driver is well behaved and calls the library initialization calls there is no difference between these two libraries from an API point of view, simply linking against the appropriate library will work.