Skip to content

Commit bdd2c36

Browse files
committed
ps2: Replaced ps2 mouse excerpt with full startup
Replaced excerpt with full capture to assist in handling edge-cases Updated README
1 parent 8b4595f commit bdd2c36

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

ps2/mouse/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,24 @@ http://www-ug.eecg.utoronto.ca/desl/nios_devices_SoC/datasheets/PS2%20Protocol.h
99
http://www-ug.eecg.utoronto.ca/desl/nios_devices_SoC/datasheets/PS2%20Mouse%20Protocol.htm
1010

1111

12-
ps2_mouse_host_setup_and_movement.sr
12+
ps2_qnx_mouse_initialize_and_move.sr
1313
------------------------------
1414

15-
This file contains a portion of setup from a QNX host to a trackball PS2 mouse.
15+
This file contains setup and communication between a QNX host and a standard mouse.
1616
The mouse packets are 3 bytes long (standard mouse, no scrollwheel)
1717
The sample includes x movement, y movement, and a click.
1818

19+
Initialize a ps2 mouse, configure it; the mouse then reports movement data.
20+
- Power is turned on, mouse resets
21+
- Host resets device, waits for reset to complete
22+
- Host waits for GUI to start (about 90 seconds)
23+
- Host sets sample rate to 40 samples/second
24+
- Host sets resolution to 8 counts/mm
25+
- Host enables data streaming
26+
- After a delay, the mouse is moved, and reports its changing location in a sequence of 3 bytes:
27+
- flags, x movement, y movement
28+
- The sample includes x and y movement, as well as two left clicks
29+
1930

2031
ps2_microsoft_mouse_initialize_and_move.sr
2132
------------------------------
-25.7 KB
Binary file not shown.
80.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)