RDB1768_usbstack
所属分类:单片机开发
开发工具:C/C++
文件大小:31KB
下载次数:61
上传日期:2009-12-03 11:51:20
上 传 者:
vitah86
说明: USB stack for lpc1768
文件列表:
RDB1768_usbstack (0, 2009-06-28)
RDB1768_usbstack\.cproject (50612, 2009-06-23)
RDB1768_usbstack\.project (2485, 2009-06-23)
RDB1768_usbstack\Debug (0, 2009-06-28)
RDB1768_usbstack\Debug\makefile (1333, 2009-06-23)
RDB1768_usbstack\Debug\objects.mk (237, 2009-06-23)
RDB1768_usbstack\Debug\sources.mk (416, 2009-06-23)
RDB1768_usbstack\Debug\src (0, 2009-06-28)
RDB1768_usbstack\Debug\src\subdir.mk (1059, 2009-06-23)
RDB1768_usbstack\inc (0, 2009-06-28)
RDB1768_usbstack\inc\lpcusb_type.h (2601, 2009-06-23)
RDB1768_usbstack\inc\usbapi.h (5245, 2009-06-23)
RDB1768_usbstack\inc\usbdebug.h (1850, 2009-06-23)
RDB1768_usbstack\inc\usbhw_lpc.h (4303, 2009-06-23)
RDB1768_usbstack\inc\usbstruct.h (3803, 2009-06-23)
RDB1768_usbstack\src (0, 2009-06-28)
RDB1768_usbstack\src\usbcontrol.c (6756, 2009-06-23)
RDB1768_usbstack\src\usbhw_lpc.c (15315, 2009-06-23)
RDB1768_usbstack\src\usbinit.c (2632, 2009-06-23)
RDB1768_usbstack\src\usbstdreq.c (12172, 2009-06-23)
Code Red Technologies RDB1768 Board - USB Stack and Examples
============================================================
The USB stack and associated examples provided with RDB1768 board are
based on the open source LPCUSB stack, originally written for the NXP
LPC214x microcontrollers. The original sources for the USB stack and
and examples can be found at:
http://sourceforge.net/projects/lpcusb/
with additional information at:
http://wiki.sikken.nl/index.php?title=LPCUSB
We have tried to keep the changes to the codebase down to a minimum, and
have commented where changes have been made as much as possible
The USB projects also use the 'semihosting' option in the debug
configuration so that 'printf' messages from the target are
reported in the Red Suite Console Window.
USBstack
--------
This is the main project which builds the LPCUSB stack as a library.
This is then used in building the various USB examples detailed below.
USB_HID Example
---------------
This is the standard LPCUSB Human Interface Device example, ported to
the LPC1768/RDB1768.
The example provides a simple HID driver. When executed on the RDB1768,
this will register itself with the connected PC as a joystick (games
controller). This can be seen by looking in the Windows Device Manager
in System Properties.
USB_HID_Mouse
-------------
This example is based on the LPCUSB USB_HID example, but has been extended
so that the RDB1768 will act as a mouse to the connected PC. To move the
cursor, use the joystick on the RDB1768 board. Clicking on the joystick will
act as pressing the mouse's left button.
USB_MSC Example
---------------
This is the standard LPCUSB mass storage device example, ported to
the LPC1768/RDB1768.
This example turns the RDB1768 into a mass storage device, by connecting
the onboard micro-SD card system to USB sub-system via the SPI interface
of the LPC1768. When the example is downloaded and run, the board will
appear within Windows as a mass storage drive, which can be read from and
written to as required.
Note that you will require a micro-SD card to make use of this example.
This should be inserted into the socket underneath the RDB1768's LCD screen
before executing the example. Hot-plugging of cards is not supported.
USB_Serial Example
------------------
This example provides a minimal implementation of a USB serial port, using
the CDC class. This therefore allows you to connect to the board over USB from
a terminal program, such as hyperterminal.
By default this port of the example will simply echo everything it receives
right back to the host PC, but incremented by 1. Thus if you type 'a' on the
host PC, the program will send back 'b'.
The original behaviour of echoing back the same character ('a' is sent back
when 'a' was received) can be restored by changing the value of the #define of
'INCREMENT_ECHO_BY' from '1' to '0'.
In order to connect to the board from hyperterminal, or similar, you will need
to extract the usbser.sys file from .cab file in C:\WINDOWS\Driver Cache\i386
and store it somewhere (C:\temp is a good place) along with the usbser.inf
file (provided as part of USB_Serial project).
Then plug the USB cable into the USB device port of the RDB1768 and when
requested (after downloading and starting execution of the example) direct
Windows to the usbser driver. Windows then creates an extra COMx port that
you can open in hyperterminal (or similar).
When configuring your terminal program, you should set it to append line
feeds to incoming line ends, and to echo typed characters locally. You
will then be able to see the character you type, as well as the character
returned by the example running on the board.
近期下载者:
相关文件:
收藏者: