Add last option to configure method

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1010 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-10-09 15:14:17 +00:00
parent 7e9f5e7b0c
commit d1c08b6853
2 changed files with 17 additions and 10 deletions
+5 -5
View File
@@ -969,7 +969,7 @@ static int usbclass_setconfig(FAR struct usbser_dev_s *priv, ubyte config)
/* Configure the IN interrupt endpoint */
ret = EP_CONFIGURE(priv->epintin, &g_epintindesc);
ret = EP_CONFIGURE(priv->epintin, &g_epintindesc, FALSE);
if (ret < 0)
{
usbtrace(TRACE_CLSERROR(USBSER_TRACEERR_EPINTINCONFIGFAIL), 0);
@@ -990,9 +990,9 @@ static int usbclass_setconfig(FAR struct usbser_dev_s *priv, ubyte config)
}
usbclass_mkepbulkdesc(&g_epbulkindesc, bulkmxpacket, &epdesc);
ret = EP_CONFIGURE(priv->epbulkin, &epdesc);
ret = EP_CONFIGURE(priv->epbulkin, &epdesc, FALSE);
#else
ret = EP_CONFIGURE(priv->epbulkin, &g_epbulkindesc);
ret = EP_CONFIGURE(priv->epbulkin, &g_epbulkindesc, FALSE);
#endif
if (ret < 0)
{
@@ -1006,9 +1006,9 @@ static int usbclass_setconfig(FAR struct usbser_dev_s *priv, ubyte config)
#ifdef CONFIG_USBDEV_DUALSPEED
usbclass_mkepbulkdesc(&g_epbulkoutdesc, bulkmxpacket, &epdesc);
ret = EP_CONFIGURE(priv->epbulkout, &epdesc);
ret = EP_CONFIGURE(priv->epbulkout, &epdesc, TRUE);
#else
ret = EP_CONFIGURE(priv->epbulkout, &g_epbulkoutdesc);
ret = EP_CONFIGURE(priv->epbulkout, &g_epbulkoutdesc, TRUE);
#endif
if (ret < 0)
{