aboutsummaryrefslogtreecommitdiff
path: root/terminal_usb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-02-14 12:00:29 +0900
committertmk <nobody@nowhere>2012-02-14 12:00:29 +0900
commit0a04817304bad630e8d3ba74675646b681827e7e (patch)
tree19fb74c2109ad414224fe0cb8b01370686b3acc8 /terminal_usb
parent9e0c6247c9cbc5c4c7a4ae6b1e2adc6a7a332c49 (diff)
downloadqmk_firmware-0a04817304bad630e8d3ba74675646b681827e7e.tar.gz
qmk_firmware-0a04817304bad630e8d3ba74675646b681827e7e.zip
Fixed keymap of IBM Terminal keyboard converter.
Diffstat (limited to 'terminal_usb')
-rw-r--r--terminal_usb/README25
-rw-r--r--terminal_usb/keymap_102.c2
-rw-r--r--terminal_usb/keymap_122.c4
3 files changed, 22 insertions, 9 deletions
diff --git a/terminal_usb/README b/terminal_usb/README
index 454f0ec18..1ce49f33d 100644
--- a/terminal_usb/README
+++ b/terminal_usb/README
@@ -1,34 +1,47 @@
1PS/2 to USB keyboard converter for IBM terminal keyboard 1PS/2 to USB keyboard converter for IBM terminal keyboard
2========================================================= 2=========================================================
3It supports PS/2 Scan Code Set 3 and runs on Teensy, Teensy++ and boards withATMega32u4/AT90USB. 3It supports PS/2 Scan Code Set 3 and runs on Teensy, Teensy++ and boards withATMega32u4/AT90USB.
4I tested the converter only on Teensy with 1392595(102keys terminal keyboard), though, I think it will also work with 122keys boards. 4I tested the converter only on Teensy with 1392595(102keys terminal keyboard),
5though, I think it will also work with 122keys boards.
5 6
7http://geekhack.org/showwiki.php?title=Island:27272
6 8
7 9
8CONNECTION 10CONNECTION
9---------- 11----------
10Data: PD0 12Data: PD0
11Clock: PD1 13Clock: PD1
14VCC and GND, of course.
12 15
13It is same as Soarer's converter pin configuration. 16It is the same as Soarer's converter pin configuration.
14http://geekhack.org/showwiki.php?title=Island:17458 17See RESOURCE for keyboard connector pin assign.
15 18
16 19
17 20
18BUILD 21BUILD
19----- 22-----
23Get source:
24$ git clone https://github.com/tmk/tmk_keyboard.git
25$ cd terminal_usb
26
20For 102keys: 27For 102keys:
21$ make -f Makefile.102_pjrc 28$ make -f Makefile.102_pjrc
22 29
23For 122keys(not tested): 30For 122keys(not tested):
24$ make -f Makefile.122_pjrc 31$ make -f Makefile.122_pjrc
25 32
26 33I used WinAVR 20100110 to develop and build.
27I used WinAVR 20100110 to develop.
28 34
29 35
30 36
31RESOURCE 37RESOURCE
32-------- 38--------
39Soarer's Converter: http://geekhack.org/showwiki.php?title=Island:17458
40102keys(1392595): http://geekhack.org/showthread.php?10737-What-Can-I-Do-With-a-Terminal-Model-M
41122keys(1390876): http://www.seasip.info/VintagePC/ibm_1390876.html
42KbdBabel: http://www.kbdbabel.org/
43RJ45 Connector: http://www.kbdbabel.org/conn/kbd_connector_ibmterm.png
44DIN Connector: http://www.kbdbabel.org/conn/kbd_connector_ibm3179_318x_319x.png
33WinAVR: http://winavr.sourceforge.net/ 45WinAVR: http://winavr.sourceforge.net/
341392595: http://geekhack.org/showthread.php?10737-What-Can-I-Do-With-a-Terminal-Model-M 46
47EOF
diff --git a/terminal_usb/keymap_102.c b/terminal_usb/keymap_102.c
index e022acd21..430570c47 100644
--- a/terminal_usb/keymap_102.c
+++ b/terminal_usb/keymap_102.c
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
62 { KB_NO, KB_##K49, KB_##K4A, KB_##K4B, KB_##K4C, KB_##K4D, KB_##K4E, KB_##K4F }, \ 62 { KB_NO, KB_##K49, KB_##K4A, KB_##K4B, KB_##K4C, KB_##K4D, KB_##K4E, KB_##K4F }, \
63 { KB_NO, KB_##K51, KB_##K52, KB_##K53, KB_##K54, KB_##K55, KB_##K56, KB_##K57 }, \ 63 { KB_NO, KB_##K51, KB_##K52, KB_##K53, KB_##K54, KB_##K55, KB_##K56, KB_##K57 }, \
64 { KB_##K58, KB_##K59, KB_##K5A, KB_##K5B, KB_##K5C, KB_##K5D, KB_##K5E, KB_##K5F }, \ 64 { KB_##K58, KB_##K59, KB_##K5A, KB_##K5B, KB_##K5C, KB_##K5D, KB_##K5E, KB_##K5F }, \
65 { KB_NO, KB_##K61, KB_##K62, KB_##K63, KB_##K64, KB_##K65, KB_##K66, KB_##K67 }, \ 65 { KB_##K60, KB_##K61, KB_##K62, KB_##K63, KB_##K64, KB_##K65, KB_##K66, KB_##K67 }, \
66 { KB_##K68, KB_##K69, KB_##K6A, KB_##K6B, KB_##K6C, KB_##K6D, KB_##K6E, KB_##K6F }, \ 66 { KB_##K68, KB_##K69, KB_##K6A, KB_##K6B, KB_##K6C, KB_##K6D, KB_##K6E, KB_##K6F }, \
67 { KB_##K70, KB_##K71, KB_##K72, KB_##K73, KB_##K74, KB_##K75, KB_##K76, KB_##K77 }, \ 67 { KB_##K70, KB_##K71, KB_##K72, KB_##K73, KB_##K74, KB_##K75, KB_##K76, KB_##K77 }, \
68 { KB_##K78, KB_##K79, KB_##K7A, KB_##K7B, KB_##K7C, KB_##K7D, KB_##K7E, KB_NO }, \ 68 { KB_##K78, KB_##K79, KB_##K7A, KB_##K7B, KB_##K7C, KB_##K7D, KB_##K7E, KB_NO }, \
diff --git a/terminal_usb/keymap_122.c b/terminal_usb/keymap_122.c
index 8db09ee73..7a2168122 100644
--- a/terminal_usb/keymap_122.c
+++ b/terminal_usb/keymap_122.c
@@ -120,8 +120,8 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
120 120
121 PSCR,ESC, GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, 121 PSCR,ESC, GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS,
122 SLCK,INT4, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, 122 SLCK,INT4, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS,
123 PAUS,INT5, CAPS,A, S, D, F, G, H, J, K, L, FN0, QUOT, NUHS,ENT, UP, P4, P5, P6, PCMM, 123 PAUS,INT5, CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, NUHS,ENT, UP, P4, P5, P6, PCMM,
124 APP, INT6, LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, FN1, RO, FN2, LEFT,INT2,RGHT, P1, P2, P3, PENT, 124 APP, INT6, LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RO, RSFT, LEFT,INT2,RGHT, P1, P2, P3, PENT,
125 RGUI,LGUI, LCTL, LALT, SPC, RALT, RCTL, DOWN, NO, P0, PDOT,NO 125 RGUI,LGUI, LCTL, LALT, SPC, RALT, RCTL, DOWN, NO, P0, PDOT,NO
126 ), 126 ),
127}; 127};