summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/host/cdc_msc_hid/Makefile4
-rw-r--r--examples/host/cdc_msc_hid/src/msc_app.c7
-rw-r--r--src/portable/ehci/ehci.c (renamed from src/host/ehci/ehci.c)4
-rw-r--r--src/portable/ehci/ehci.h (renamed from src/host/ehci/ehci.h)2
-rw-r--r--src/portable/ohci/ohci.c (renamed from src/host/ohci/ohci.c)8
-rw-r--r--src/portable/ohci/ohci.h (renamed from src/host/ohci/ohci.h)2
6 files changed, 9 insertions, 18 deletions
diff --git a/examples/host/cdc_msc_hid/Makefile b/examples/host/cdc_msc_hid/Makefile
index 3a0e94d73..6a2b4d902 100644
--- a/examples/host/cdc_msc_hid/Makefile
+++ b/examples/host/cdc_msc_hid/Makefile
@@ -19,8 +19,8 @@ SRC_C += \
src/host/hub.c \
src/host/usbh.c \
src/host/usbh_control.c \
- src/host/ehci/ehci.c \
- src/host/ohci/ohci.c \
+ src/portable/ehci/ehci.c \
+ src/portable/ohci/ohci.c \
src/portable/nxp/transdimension/hcd_transdimension.c \
src/portable/nxp/lpc17_40/hcd_lpc17_40.c
diff --git a/examples/host/cdc_msc_hid/src/msc_app.c b/examples/host/cdc_msc_hid/src/msc_app.c
index 623141eaa..3a8ef3a07 100644
--- a/examples/host/cdc_msc_hid/src/msc_app.c
+++ b/examples/host/cdc_msc_hid/src/msc_app.c
@@ -73,13 +73,6 @@ void tuh_msc_mount_cb(uint8_t dev_addr)
// return;
// }
//
-// puts("---------------------------------------------------------------------");
-// puts("- MASSSTORAGE CLASS CLI IS A IMMATURE CODE. DISK-WRITING COMMANDS");
-// puts("- SUCH AS cp(COPY), mkdir(MAKE DIRECTORY) ARE POTENTIAL TO DAMAGE");
-// puts("- YOUR USB THUMBDRIVE. USING THOSE COMMANDS ARE AT YOUR OWN RISK.");
-// puts("- THE AUTHOR HAS NO RESPONSIBILITY WITH YOUR DEVICE NOR ITS DATA");
-// puts("---------------------------------------------------------------------");
-//
// f_chdrive(phy_disk); // change to newly mounted drive
// f_chdir("/"); // root as current dir
//
diff --git a/src/host/ehci/ehci.c b/src/portable/ehci/ehci.c
index 5626abcc8..e2327fdc0 100644
--- a/src/host/ehci/ehci.c
+++ b/src/portable/ehci/ehci.c
@@ -35,8 +35,8 @@
//--------------------------------------------------------------------+
#include "osal/osal.h"
-#include "../hcd.h"
-#include "../usbh_hcd.h"
+#include "host/hcd.h"
+#include "host/usbh_hcd.h"
#include "ehci.h"
//--------------------------------------------------------------------+
diff --git a/src/host/ehci/ehci.h b/src/portable/ehci/ehci.h
index d8218a5fd..212f605b1 100644
--- a/src/host/ehci/ehci.h
+++ b/src/portable/ehci/ehci.h
@@ -33,8 +33,6 @@
#ifndef _TUSB_EHCI_H_
#define _TUSB_EHCI_H_
-#include "common/tusb_common.h"
-#include "../hcd.h"
/* Abbreviation
* HC: Host Controller
diff --git a/src/host/ohci/ohci.c b/src/portable/ohci/ohci.c
index 44acebf72..ee294856b 100644
--- a/src/host/ohci/ohci.c
+++ b/src/portable/ohci/ohci.c
@@ -26,14 +26,16 @@
#include <common/tusb_common.h>
-#if TUSB_OPT_HOST_ENABLED && (CFG_TUSB_MCU == OPT_MCU_LPC175X_6X || CFG_TUSB_MCU == OPT_MCU_LPC40XX)
+#if TUSB_OPT_HOST_ENABLED && \
+ (CFG_TUSB_MCU == OPT_MCU_LPC175X_6X || CFG_TUSB_MCU == OPT_MCU_LPC40XX)
+
//--------------------------------------------------------------------+
// INCLUDE
//--------------------------------------------------------------------+
#include "osal/osal.h"
-#include "../hcd.h"
-#include "../usbh_hcd.h"
+#include "host/hcd.h"
+#include "host/usbh_hcd.h"
#include "ohci.h"
// TODO remove
diff --git a/src/host/ohci/ohci.h b/src/portable/ohci/ohci.h
index 2915f8b00..7f9e55b21 100644
--- a/src/host/ohci/ohci.h
+++ b/src/portable/ohci/ohci.h
@@ -37,8 +37,6 @@
extern "C" {
#endif
-#include "common/tusb_common.h"
-
//--------------------------------------------------------------------+
// OHCI CONFIGURATION & CONSTANTS
//--------------------------------------------------------------------+