nausbhost2device: NS9360 USB Host to USB Device Loopback Example Application

This example shows how the NS9360 board is configured to concurrently run a USB 
Host application and a USB Device application in external loopback mode, where
the USB Host port is connected through a USB cable to the USB Device port.
For this mode of operation, the USB Host must use the internal USB PHY and
the USB Device must use the external PHY.

The USB Device application simulates a unidirectional printer, where it
receives data bytes from the USB Host application.  The USB Host application
uses the printer class device driver to detect that a printer device is 
connected and then sends the print file to the printer device.


Note:

1) This example works only with NS9360 based boards.
2) In the platform gpio.h, set the JUMPER_2 definition to JMP2_SERA_USB.  
   For customizing the NS9360 Dev board, see the 9360 Jumpers and Components 
   guide, or use the following setup on JUMPER_2:

                A  B  C
            1   ====  o
            2   ====  o
            3   ====  o
            4   ====  o
            5   ====  o
            6   o  ====
            7   o  ====
            8   o  ====

3) The BSP_USB_DEVICE_VERSION constant in bsp.h
   must be set to BSP_USB_DRIVER_VERSION_1.

The following files are provided with this example:

appconf.h         sets application configuration settings
makefile          Make file for the GNU toolset.
readme            this file
root.c            contains applicationStart() function to setup different time
usb_device_test.c contains a simple USB device application.
usb_host_test.c   contains a simple USB host application


In addition, the following files in the BSP directory are built as part of this 
example:

reset.s         contains the reset code
appconf_api.c   contains code used to read settings in appconf.h


The build file links in the following libraries:

libbsp.a               contains the BSP library
libaddp.a			   contains the ADDP Library
libtcpip.a             contains the TCP/IP stack library
libpppintf.a		   contains the PPP Interface Library
libtx.a                contains the ThreadX kernel
libposix.a             contains the POSIX layer library
libflash.a             contains the Flash driver API library
libssh.a			   contains the SSH Library
libtelnsvr.a           contains the Telnet Server library
libdnsclnt.a           contains the DNS Client library
libusbmassstorage.a    contains the USB Mass Storage library
libusbhost.a           contains the USB Host library
libusbhub.a			   contains the USB Hub Library


The application uses the following files located in the
netos\src\linkerScripts directory.  These files are generated
when the BSP is built.

bootldr.dat     bootloader configuration file used to generate the
                file image.bin.  It controls the information placed
                in the bootloader header of the image.

image.ldr       GNU linker script used to build an image that can
                be debugged and used with the bootloader.
                
customize.ldr   Customizable GNU linker script
