From 9df7fba1493b8e5e00b3e1016af62be59d4d4964 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 18 Aug 2010 23:27:36 +0000 Subject: [PATCH] Fix compile error in usbdev_serial.c git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2867 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 4 +++- Documentation/NuttX.html | 4 +++- drivers/usbdev/usbdev_serial.c | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c2ddcaeb46..19191e2a4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1208,4 +1208,6 @@ of GPIO port number that limited support for GPIO ports to 8 * sched/pg_*.c and *.c and include/nuttx/page.h - Implemented the common, core logic for on-demand paging. See - http://www.nuttx.org/NuttXDemandPaging.html for details. \ No newline at end of file + http://www.nuttx.org/NuttXDemandPaging.html for details. + * drivers/usbdev/usbdev_serial.c - Correct compilation errors that + occur if CONFIG_USBDEV_DUALSPEED is selected. diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index 203651a679..7f3f8a3fa2 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -8,7 +8,7 @@

NuttX RTOS

-

Last Updated: August 14, 2010

+

Last Updated: August 18, 2010

@@ -1890,6 +1890,8 @@ nuttx-5.9 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> * sched/pg_*.c and *.c and include/nuttx/page.h - Implemented the common, core logic for on-demand paging. See http://www.nuttx.org/NuttXDemandPaging.html for details. + * drivers/usbdev/usbdev_serial.c - Correct compilation errors that + occur if CONFIG_USBDEV_DUALSPEED is selected. pascal-2.1 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/drivers/usbdev/usbdev_serial.c b/drivers/usbdev/usbdev_serial.c index 78afd32797..4e7b389083 100644 --- a/drivers/usbdev/usbdev_serial.c +++ b/drivers/usbdev/usbdev_serial.c @@ -318,7 +318,7 @@ static void usbclass_freereq(FAR struct usbdev_ep_s *ep, static int usbclass_mkstrdesc(uint8_t id, struct usb_strdesc_s *strdesc); #ifdef CONFIG_USBDEV_DUALSPEED -static void usbclass_mkepbulkdesc(const struct usb_epdesc *indesc, +static void usbclass_mkepbulkdesc(const struct usb_epdesc_s *indesc, uint16_t mxpacket, struct usb_epdesc_s *outdesc); static int16_t usbclass_mkcfgdesc(uint8_t *buf, uint8_t speed, uint8_t type); #else @@ -864,7 +864,7 @@ static int usbclass_mkstrdesc(uint8_t id, struct usb_strdesc_s *strdesc) ****************************************************************************/ #ifdef CONFIG_USBDEV_DUALSPEED -static inline void usbclass_mkepbulkdesc(const FAR struct usb_epdesc *indesc, +static inline void usbclass_mkepbulkdesc(const FAR struct usb_epdesc_s *indesc, uint16_t mxpacket, FAR struct usb_epdesc_s *outdesc) { @@ -1054,7 +1054,7 @@ static int usbclass_setconfig(FAR struct usbser_dev_s *priv, uint8_t config) /* Configure the IN bulk endpoint */ #ifdef CONFIG_USBDEV_DUALSPEED - if ((priv->usbdev->speed == USB_SPEED_HIGH) + if (priv->usbdev->speed == USB_SPEED_HIGH) { bulkmxpacket = 512; }