Changeset 5247411 in mainline
- Timestamp:
- 2010-10-12T10:36:18Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e22ce0b
- Parents:
- 2c970ee
- Location:
- uspace/app/virtusbkbd
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/virtusbkbd/Makefile
r2c970ee r5247411 36 36 37 37 SOURCES = \ 38 report.c \ 38 39 virtusbkbd.c 39 40 -
uspace/app/virtusbkbd/virtusbkbd.c
r2c970ee r5247411 51 51 #include <usbvirt/hub.h> 52 52 #include <usbvirt/ids.h> 53 54 #include "report.h" 53 55 54 56 #define LOOPS 5 … … 118 120 int main(int argc, char * argv[]) 119 121 { 122 printf("Dump of report descriptor (%u bytes):\n", report_descriptor_size); 123 size_t i; 124 for (i = 0; i < report_descriptor_size; i++) { 125 printf(" 0x%02X", report_descriptor[i]); 126 if (((i > 0) && (((i+1) % 10) == 0)) 127 || (i + 1 == report_descriptor_size)) { 128 printf("\n"); 129 } 130 } 131 132 120 133 int rc = usbvirt_connect(&keyboard_dev, DEV_HCD_NAME); 121 134 if (rc != EOK) { … … 125 138 } 126 139 127 size_t i;140 128 141 for (i = 0; i < LOOPS; i++) { 129 142 size_t size = 5;
Note:
See TracChangeset
for help on using the changeset viewer.