STM32: Remove usb_dumpbuffer() macro from OTGFS device. It cannot be controlled via Kconfig and therefore will not be supported.

This commit is contained in:
Gregory Nutt
2017-11-23 06:28:36 -06:00
parent 2bdd4aeeed
commit d1e234e179
+1 -15
View File
@@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* arch/arm/src/stm32/stm32_otgfsdev.c * arch/arm/src/stm32/stm32_otgfsdev.c
* *
* Copyright (C) 2012-2016 Gregory Nutt. All rights reserved. * Copyright (C) 2012-2017 Gregory Nutt. All rights reserved.
* Authors: Gregory Nutt <gnutt@nuttx.org> * Authors: Gregory Nutt <gnutt@nuttx.org>
* David Sidrane <david_s5@nscdg.com> * David Sidrane <david_s5@nscdg.com>
* *
@@ -283,16 +283,6 @@
#define STM32_TRACEINTID_SETUPDONE (90 + 3) #define STM32_TRACEINTID_SETUPDONE (90 + 3)
#define STM32_TRACEINTID_SETUPRECVD (90 + 4) #define STM32_TRACEINTID_SETUPRECVD (90 + 4)
/* CONFIG_USB_DUMPBUFFER will dump the contents of buffers to the console. */
#undef CONFIG_USB_DUMPBUFFER
#ifdef CONFIG_USB_DUMPBUFFER
# define usb_dumpbuffer(t,b,l) uinfodumpbuffer(t,b,l)
#else
# define usb_dumpbuffer(t,b,l)
#endif
/* Endpoints ******************************************************************/ /* Endpoints ******************************************************************/
/* Number of endpoints */ /* Number of endpoints */
@@ -1090,8 +1080,6 @@ static void stm32_txfifo_write(FAR struct stm32_ep_s *privep,
int nwords; int nwords;
int i; int i;
usb_dumpbuffer(">>>", buf, nbytes);
/* Convert the number of bytes to words */ /* Convert the number of bytes to words */
nwords = (nbytes + 3) >> 2; nwords = (nbytes + 3) >> 2;
@@ -1480,8 +1468,6 @@ static void stm32_rxfifo_read(FAR struct stm32_ep_s *privep,
*dest++ = data.b[2]; *dest++ = data.b[2];
*dest++ = data.b[3]; *dest++ = data.b[3];
} }
usb_dumpbuffer("<<<", dest-len, len);
} }
/**************************************************************************** /****************************************************************************