diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/usb_dc.h | 1 | ||||
| -rw-r--r-- | common/usb_util.h | 13 |
2 files changed, 7 insertions, 7 deletions
diff --git a/common/usb_dc.h b/common/usb_dc.h index ea57fcde..29997c11 100644 --- a/common/usb_dc.h +++ b/common/usb_dc.h @@ -2,7 +2,6 @@ #define _USB_DC_H
#include "stdint.h"
-#include "bflb_platform.h"
#ifdef __cplusplus
extern "C" {
diff --git a/common/usb_util.h b/common/usb_util.h index eebd3401..4c18cc14 100644 --- a/common/usb_util.h +++ b/common/usb_util.h @@ -5,6 +5,7 @@ #include "string.h"
#include "stdint.h"
#include "stdio.h"
+#include "stdlib.h"
#include "usb_slist.h"
#ifndef __packed
@@ -127,14 +128,14 @@ #define DBVAL(x) (x & 0xFF), ((x >> 8) & 0xFF), ((x >> 16) & 0xFF), ((x >> 24) & 0xFF)
#if 0
-#define USBD_LOG_WRN(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
-#define USBD_LOG_DBG(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
-#define USBD_LOG_ERR(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
+#define USBD_LOG_WRN(a, ...) printf(a, ##__VA_ARGS__)
+#define USBD_LOG_DBG(a, ...) printf(a, ##__VA_ARGS__)
+#define USBD_LOG_ERR(a, ...) printf(a, ##__VA_ARGS__)
#else
-#define USBD_LOG_WRN(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
+#define USBD_LOG_WRN(a, ...) printf(a, ##__VA_ARGS__)
#define USBD_LOG_DBG(a, ...)
-#define USBD_LOG_ERR(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
-#define USBD_LOG(a, ...) bflb_platform_printf(a, ##__VA_ARGS__)
+#define USBD_LOG_ERR(a, ...) printf(a, ##__VA_ARGS__)
+#define USBD_LOG(a, ...) printf(a, ##__VA_ARGS__)
#endif
#endif
\ No newline at end of file |
