diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-15 22:30:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-15 22:30:23 +0000 |
commit | 979c0410e02cb6217fdc87bff44d17c3182ed1d7 (patch) | |
tree | fb50e1bc9c25c3d3f60b9a9f8e0f92f8d1da9e83 /nuttx/include | |
parent | 3f0f70063b9aa18280083f32cae2d1b01849d838 (diff) | |
download | px4-nuttx-979c0410e02cb6217fdc87bff44d17c3182ed1d7.tar.gz px4-nuttx-979c0410e02cb6217fdc87bff44d17c3182ed1d7.tar.bz2 px4-nuttx-979c0410e02cb6217fdc87bff44d17c3182ed1d7.zip |
Many changes in preparation for HID keyboard
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3253 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rwxr-xr-x | nuttx/include/nuttx/usb/ohci.h | 2 | ||||
-rw-r--r-- | nuttx/include/nuttx/usb/usbhost.h | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/usb/ohci.h b/nuttx/include/nuttx/usb/ohci.h index c19b2d3d8..60cf97513 100755 --- a/nuttx/include/nuttx/usb/ohci.h +++ b/nuttx/include/nuttx/usb/ohci.h @@ -279,6 +279,8 @@ #define ED_CONTROL_MPS_SHIFT (16) /* Bits 16-26: Maximum packet size */ #define ED_CONTROL_MPS_MASK (0x7ff << ED_CONTROL_MPS_SHIFT) +#define ED_HEADP_ADDR_SHIFT (0) +#define ED_HEADP_ADDR_MASK 0xfffffff0 #define ED_HEADP_H (1 << 0) /* Bit 0: Halted */ #define ED_HEADP_C (1 << 1) /* Bit 1: Toggle carry */ diff --git a/nuttx/include/nuttx/usb/usbhost.h b/nuttx/include/nuttx/usb/usbhost.h index 3e1f642c8..8d77d12c6 100644 --- a/nuttx/include/nuttx/usb/usbhost.h +++ b/nuttx/include/nuttx/usb/usbhost.h @@ -671,6 +671,25 @@ EXTERN const struct usbhost_registry_s *usbhost_findclass(const struct usbhost_i EXTERN int usbhost_storageinit(void); +/**************************************************************************** + * Name: usbhost_kbdinit + * + * Description: + * Initialize the USB storage HID keyboard class driver. This function + * should be called be platform-specific code in order to initialize and + * register support for the USB host HID keyboard class device. + * + * Input Parameters: + * None + * + * Returned Values: + * On success this function will return zero (OK); A negated errno value + * will be returned on failure. + * + ****************************************************************************/ + +EXTERN int usbhost_kbdinit(void); + /******************************************************************************* * Name: usbhost_initialize * |