USBH: moved usbh/desciter.h and usbh/debug.h to usbh/internal.h

This commit is contained in:
Diego Ismirlian 2017-07-09 19:42:36 -03:00
parent 665643c9e4
commit 6b7161b90a
8 changed files with 10 additions and 21 deletions

View File

@ -429,13 +429,6 @@ struct usbh_baseclassdriver {
_usbh_base_classdriver_data
};
/*===========================================================================*/
/* Helper functions. */
/*===========================================================================*/
#include <usbh/desciter.h> /* descriptor iterators */
#include <usbh/debug.h> /* debug */
#endif
#endif /* HAL_USBH_H_ */

View File

@ -22,11 +22,7 @@
#if HAL_USE_USBH && HAL_USBH_USE_UVC
/* TODO:
*
*
*/
#include "usbh/desciter.h"
/*===========================================================================*/
/* Driver pre-compile time settings. */

View File

@ -137,6 +137,9 @@ void _usbh_urb_abort_and_waitS(usbh_urb_t *urb, usbh_urbstatus_t status);
#define sizeof_array(x) (sizeof(x)/sizeof(*(x)))
#include "usbh/desciter.h" /* descriptor iterators */
#include "usbh/debug.h"
#endif
#endif /* USBH_INTERNAL_H_ */

View File

@ -27,9 +27,6 @@
#include "usbh/dev/ftdi.h"
#include "usbh/internal.h"
//#pragma GCC optimize("Og")
#if USBHFTDI_DEBUG_ENABLE_TRACE
#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)
#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__)

View File

@ -27,9 +27,6 @@
#include "usbh/dev/msd.h"
#include "usbh/internal.h"
//#pragma GCC optimize("Og")
#if USBHMSD_DEBUG_ENABLE_TRACE
#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)
#define udbg(f, ...) usbDbgPuts(f, ##__VA_ARGS__)

View File

@ -27,9 +27,9 @@
#error "USBHUVC needs HAL_USBH_USE_IAD"
#endif
#include <string.h>
#include "usbh/dev/uvc.h"
#include "usbh/internal.h"
#include <string.h>
#if USBHUVC_DEBUG_ENABLE_TRACE
#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)

View File

@ -18,6 +18,8 @@
#include "hal.h"
#include "ff.h"
#include <string.h>
#include "usbh/debug.h" /* for usbDbgPuts/usbDbgPrintf */
#define UVC_TO_MSD_PHOTOS_CAPTURE FALSE

View File

@ -18,9 +18,10 @@
#include "hal.h"
#if HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS
#include "usbh/internal.h"
#include "usbh_custom_class_example.h"
#include <string.h>
#include "usbh_custom_class_example.h"
#include "usbh/internal.h"
#if USBH_DEBUG_ENABLE_TRACE
#define udbgf(f, ...) usbDbgPrintf(f, ##__VA_ARGS__)