A version of the PS/2 library customized for MbedConsole. Also includes a few things that make it's behavior easier to control and a few bug fixes.
Fork of PS2 by
Diff: PS2KB_INIT.cpp
- Revision:
- 2:a57bbbec16b1
- Parent:
- 1:823c2798e398
- Child:
- 5:ead90ca02b18
--- a/PS2KB_INIT.cpp Wed Sep 29 14:11:44 2010 +0000 +++ b/PS2KB_INIT.cpp Wed Sep 29 22:15:03 2010 +0000 @@ -16,6 +16,13 @@ clk.write(1); dat.write(1); + /* + * 0xFF: Reset. + * 0xED: Set/Reset status indicators. + * 0xF2: Read ID. + * 0xF3: Set typematic rate/delay. + * 0xF4: Enable. + */ char txdat[12] = "\xFF\xED\x07\xF2\xED\x00\xF3\x20\xF3\x00\xF4"; const int n = sizeof(txdat); int txerrcnt = 0;