Changeset 3b2e387 in mainline for uspace/srv/hid/input/port/adb.c
- Timestamp:
- 2011-06-21T19:36:05Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e3a6c45
- Parents:
- 40f606b (diff), 022d9f67 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/adb.c
r40f606b r3b2e387 93 93 async_exchange_end(exch); 94 94 if (rc != EOK) { 95 printf( NAME ": Failed to create callback from device\n");95 printf("%s: Failed to create callback from device\n", NAME); 96 96 async_hangup(dev_sess); 97 97 return rc; … … 142 142 static void adb_kbd_reg0_data(uint16_t data) 143 143 { 144 uint8_t b0, b1; 145 146 b0 = (data >> 8) & 0xff; 147 b1 = data & 0xff; 148 144 uint8_t b0 = (data >> 8) & 0xff; 145 uint8_t b1 = data & 0xff; 146 149 147 if (b0 != 0xff) 150 kbd_push_scancode(kbd_dev, b0); 148 kbd_push_data(kbd_dev, b0); 149 151 150 if (b1 != 0xff) 152 kbd_push_ scancode(kbd_dev, b1);151 kbd_push_data(kbd_dev, b1); 153 152 } 154 153
Note:
See TracChangeset
for help on using the changeset viewer.