change inferface handler parameter; add a protocol define

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2564 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
sc943313837@gmail.com 2012-12-30 09:43:19 +00:00
parent 454455e858
commit aa49ca9db3
3 changed files with 3 additions and 2 deletions

View File

@ -44,6 +44,7 @@
#define USB_CDC_PROTOCOL_CAPI20 0x93 #define USB_CDC_PROTOCOL_CAPI20 0x93
#define USB_CDC_PROTOCOL_HOST 0xFD #define USB_CDC_PROTOCOL_HOST 0xFD
#define USB_CDC_PROTOCOL_PUFD 0xFE #define USB_CDC_PROTOCOL_PUFD 0xFE
#define USB_CDC_PROTOCOL_VENDOR 0xFF
#define USB_CDC_CS_INTERFACE 0x24 #define USB_CDC_CS_INTERFACE 0x24
#define USB_CDC_CS_ENDPOINT 0x25 #define USB_CDC_CS_ENDPOINT 0x25

View File

@ -275,7 +275,7 @@ static rt_err_t _cdc_set_line_coding(udevice_t device, ureq_t setup)
* *
* @return RT_EOK on successful. * @return RT_EOK on successful.
*/ */
static rt_err_t _interface_handler(udevice_t device, ureq_t setup) static rt_err_t _interface_handler(udevice_t device, uclass_t cls, ureq_t setup)
{ {
RT_ASSERT(device != RT_NULL); RT_ASSERT(device != RT_NULL);
RT_ASSERT(setup != RT_NULL); RT_ASSERT(setup != RT_NULL);

View File

@ -456,7 +456,7 @@ static rt_err_t _ep_out_handler(udevice_t device, uclass_t cls, rt_size_t size)
* *
* @return RT_EOK on successful. * @return RT_EOK on successful.
*/ */
static rt_err_t _interface_handler(udevice_t device, ureq_t setup) static rt_err_t _interface_handler(udevice_t device, uclass_t cls, ureq_t setup)
{ {
rt_uint8_t lun = 0; rt_uint8_t lun = 0;