Implement encoding the usbhost HID keyboard driver; configre olimex-lpc1766stk HID keyboard configuration to use the kconfig-frontends tool

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5461 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-12-26 18:54:59 +00:00
parent 292d4db37a
commit 373e145e54
12 changed files with 1131 additions and 584 deletions
+2 -2
View File
@@ -206,7 +206,7 @@ int hidkbd_main(int argc, char *argv[])
printf("Device %s opened\n", CONFIG_EXAMPLES_HIDKBD_DEVNAME);
fflush(stdout);
/* Loop until there is a read failure */
/* Loop until there is a read failure (or EOF?) */
do
{
@@ -220,7 +220,7 @@ int hidkbd_main(int argc, char *argv[])
(void)write(1, buffer, nbytes);
}
}
while (nbytes >= 0);
while (nbytes > 0);
printf("Closing device %s: %d\n", CONFIG_EXAMPLES_HIDKBD_DEVNAME, (int)nbytes);
fflush(stdout);