On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTUSB-32
RTUSB-32 Programming Manual
Introduction
The Universal Serial Bus
Programming with RTUSB-32
Demo Programs
Advanced Topics
Isochronous Transfers
HID (Human Interface Devices)
Porting RTUSB-32 to other Platforms
Compile Time Options, Rtucfg.h
The System Driver
Source Code Structure
Compiling RTUSB-32
RTUSB-32 Reference Manual
|
Compiling RTUSB-32
Compiling and rebuilding RTUSB-32 is obviously very platform dependent. RTUSB-32 comes with two make files which compile RTUSB-32 (among all other On Time RTOS-32 components). These makefiles are Libbc\Makefile for Borland compilers and Libmsvc\Makefile for Microsoft compilers.
Compiling the .c files described in section Source Code Structure is straightforward. The compiler must be able to find header files located in directory Include. No other special compiler options are required.
To generate a library of the core USB host stack, these source files should be compiled:
Source\Rtu32\Xhci.c |
Source\Rtu32\Ehci.c |
Source\Rtu32\Ohci.c |
Source\Rtu32\Uhci.c |
Source\Rtu32\Rtusb.c |
Source\Rtu32\Usbcfg.c |
Source\Rtu32\Usbutil.c |
Driver\Rtu32\Usbax172.c |
Driver\Rtu32\Usbax772.c |
Driver\Rtu32\Usbcdcecm.c |
Driver\Rtu32\Usbmouse.c |
Driver\Rtu32\Usbmscfg.c |
Driver\Rtu32\Usbtouch.c |
Driver\Rtu32\Usbthcfg.c |
Driver\Rtu32\Usbkb.c |
Driver\Rtu32\Usbkbcfg.c |
Driver\Rtu32\Usbprint.c |
Driver\Rtu32\Usbdisk.c |
Driver\Rtu32\Usbaudio.c |
Driver\Rtu32\Usbmtp.c |
To successfully link an application using RTUSB-32, the library must also contain a system driver.
Porting RTUSB-32 to other Platforms
Source Code Structure
|