summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-18 02:17:49 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-18 02:17:49 +0000
commit793fdbf756af7084e86fcaeeabc3c22f100673db (patch)
tree3339fb28ee2d516a996529b8deca817c5e5c398d /nuttx/include
parent2192e41e80704f27a61c9ae6b8a2c496bfe5090c (diff)
downloadpx4-nuttx-793fdbf756af7084e86fcaeeabc3c22f100673db.tar.gz
px4-nuttx-793fdbf756af7084e86fcaeeabc3c22f100673db.tar.bz2
px4-nuttx-793fdbf756af7084e86fcaeeabc3c22f100673db.zip
Add logic to map keyboard scancodes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3257 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rwxr-xr-xnuttx/include/nuttx/usb/hid.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/nuttx/include/nuttx/usb/hid.h b/nuttx/include/nuttx/usb/hid.h
index 31c3644a0..81e515b82 100755
--- a/nuttx/include/nuttx/usb/hid.h
+++ b/nuttx/include/nuttx/usb/hid.h
@@ -115,10 +115,10 @@
#define USBHID_REQUEST_GETREPORT 0x01
#define USBHID_REQUEST_GETIDLE 0x02
-#define USBHID_REQUEST_GET_PROTOCOL 0x03
-#define USBHID_REQUEST_SET_REPORT 0x09
-#define USBHID_REQUEST_SET_IDLE 0x0a
-#define USBHID_REQUEST_SET_PROTOCOL 0x0b
+#define USBHID_REQUEST_GETPROTOCOL 0x03
+#define USBHID_REQUEST_SETREPORT 0x09
+#define USBHID_REQUEST_SETIDLE 0x0a
+#define USBHID_REQUEST_SETPROTOCOL 0x0b
/* Report Type (MS byte of wValue for GET_REPORT) (HID 7.2.1) */
@@ -414,7 +414,7 @@
#define USBHID_KBDUSE_CLEAR 0x9c /* Keyboard Clear */
#define USBHID_KBDUSE_PRIOR 0x9d /* Keyboard Prior */
#define USBHID_KBDUSE_RETURN 0x9e /* Keyboard Return */
-#define USBHID_KBDUSE_SEPARATRO 0x9f /* Keyboard Separator */
+#define USBHID_KBDUSE_SEPARATOR 0x9f /* Keyboard Separator */
#define USBHID_KBDUSE_OUT 0xa0 /* Keyboard Out */
#define USBHID_KBDUSE_OPER 0xa1 /* Keyboard Oper */
#define USBHID_KBDUSE_CLEARAGAIN 0xa2 /* Keyboard Clear/Again */
@@ -470,6 +470,8 @@
#define USBHID_KBDUSE_RALT 0xe6 /* Keyboard RightAlt */
#define USBHID_KBDUSE_RGUI 0xe7 /* Keyboard Right GUI*/
+#define USBHID_KBDUSE_MAX 0xe7
+
/* Mouse input report (HID B.2) */
#define USBHID_MOUSEIN_BUTTON1 (1 << 0)