aboutsummaryrefslogtreecommitdiff
path: root/lib/vusb/examples/hid-mouse/Readme.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vusb/examples/hid-mouse/Readme.txt')
-rw-r--r--lib/vusb/examples/hid-mouse/Readme.txt48
1 files changed, 48 insertions, 0 deletions
diff --git a/lib/vusb/examples/hid-mouse/Readme.txt b/lib/vusb/examples/hid-mouse/Readme.txt
new file mode 100644
index 000000000..e0c814281
--- /dev/null
+++ b/lib/vusb/examples/hid-mouse/Readme.txt
@@ -0,0 +1,48 @@
1This is the Readme file for hid-mouse, an example of a USB mouse device. In
2order to have as little dependencies on hardware and architecture as
3possible, mouse movements are computed internally so that the mouse pointer
4moves in a circle.
5
6
7WHAT IS DEMONSTRATED?
8=====================
9This example demonstrates how HID class devices are implemented. The example
10is kept as simple as possible, except the report descriptor which is taken
11from a real-world mouse.
12
13It does NOT include a host side driver because all modern operating systems
14include one. It does NOT implement USBRQ_HID_SET_REPORT and report-IDs. See
15the "hid-data" example for this topic. It does NOT implement any special
16features such as suspend mode etc.
17
18
19PREREQUISITES
20=============
21Target hardware: You need an AVR based circuit based on one of the examples
22(see the "circuits" directory at the top level of this package), e.g. the
23metaboard (http://www.obdev.at/goto.php?t=metaboard).
24
25AVR development environment: You need the gcc tool chain for the AVR, see
26the Prerequisites section in the top level Readme file for how to obtain it.
27
28
29BUILDING THE FIRMWARE
30=====================
31Change to the "firmware" directory and modify Makefile according to your
32architecture (CPU clock, target device, fuse values) and ISP programmer. Then
33edit usbconfig.h according to your pin assignments for D+ and D-. The default
34settings are for the metaboard hardware.
35
36Type "make hex" to build main.hex, then "make flash" to upload the firmware
37to the device. Don't forget to run "make fuse" once to program the fuses. If
38you use a prototyping board with boot loader, follow the instructions of the
39boot loader instead.
40
41Please note that the first "make hex" copies the driver from the top level
42into the firmware directory. If you use a different build system than our
43Makefile, you must copy the driver by hand.
44
45
46----------------------------------------------------------------------------
47(c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH.
48http://www.obdev.at/