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