summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-05-27 18:18:30 +0700
committerhathach <[email protected]>2021-05-27 18:34:07 +0700
commit9ad6fadf6a65363f9873178e7f80c923452bfb47 (patch)
tree181cf339534e2c2e946e050e4997647bb4f473e8 /src/host
parentf384d6f67e200b855e7b07a1fc3218c874e43a42 (diff)
more include clean up
Diffstat (limited to 'src/host')
-rw-r--r--src/host/hub.c4
-rw-r--r--src/host/hub.h1
-rw-r--r--src/host/usbh.h9
3 files changed, 2 insertions, 12 deletions
diff --git a/src/host/hub.c b/src/host/hub.c
index 2191c4560..4db680f9e 100644
--- a/src/host/hub.c
+++ b/src/host/hub.c
@@ -28,9 +28,7 @@
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_HUB)
-//--------------------------------------------------------------------+
-// INCLUDE
-//--------------------------------------------------------------------+
+#include "usbh.h"
#include "hub.h"
//--------------------------------------------------------------------+
diff --git a/src/host/hub.h b/src/host/hub.h
index 851bb8e66..2b2f39ee1 100644
--- a/src/host/hub.h
+++ b/src/host/hub.h
@@ -37,7 +37,6 @@
#define _TUSB_HUB_H_
#include "common/tusb_common.h"
-#include "usbh.h"
#ifdef __cplusplus
extern "C" {
diff --git a/src/host/usbh.h b/src/host/usbh.h
index 590c8a359..a9790b484 100644
--- a/src/host/usbh.h
+++ b/src/host/usbh.h
@@ -34,10 +34,7 @@
extern "C" {
#endif
-//--------------------------------------------------------------------+
-// INCLUDE
-//--------------------------------------------------------------------+
-#include "osal/osal.h" // TODO refractor move to common.h ?
+#include "common/tusb_common.h"
#include "hcd.h"
//--------------------------------------------------------------------+
@@ -68,10 +65,6 @@ typedef struct {
typedef bool (*tuh_control_complete_cb_t)(uint8_t dev_addr, tusb_control_request_t const * request, xfer_result_t result);
//--------------------------------------------------------------------+
-// INTERNAL OBJECT & FUNCTION DECLARATION
-//--------------------------------------------------------------------+
-
-//--------------------------------------------------------------------+
// APPLICATION API
//--------------------------------------------------------------------+