aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/USB_HOST
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F4xx/USB_HOST')
-rw-r--r--testhal/STM32/STM32F4xx/USB_HOST/main.c2
-rw-r--r--testhal/STM32/STM32F4xx/USB_HOST/usbh_custom_class_example.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F4xx/USB_HOST/main.c b/testhal/STM32/STM32F4xx/USB_HOST/main.c
index 7cf14e1..a450019 100644
--- a/testhal/STM32/STM32F4xx/USB_HOST/main.c
+++ b/testhal/STM32/STM32F4xx/USB_HOST/main.c
@@ -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
diff --git a/testhal/STM32/STM32F4xx/USB_HOST/usbh_custom_class_example.c b/testhal/STM32/STM32F4xx/USB_HOST/usbh_custom_class_example.c
index d8c5bbe..9c56866 100644
--- a/testhal/STM32/STM32F4xx/USB_HOST/usbh_custom_class_example.c
+++ b/testhal/STM32/STM32F4xx/USB_HOST/usbh_custom_class_example.c
@@ -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__)