Skip to content

Commit 9ad6fad

Browse files
committed
more include clean up
1 parent f384d6f commit 9ad6fad

File tree

13 files changed

+6
-48
lines changed

13 files changed

+6
-48
lines changed

src/class/cdc/cdc_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_CDC)
3030

31-
#include "common/tusb_common.h"
31+
#include "host/usbh.h"
3232
#include "cdc_host.h"
3333

3434
//--------------------------------------------------------------------+

src/class/cdc/cdc_host.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#ifndef _TUSB_CDC_HOST_H_
2828
#define _TUSB_CDC_HOST_H_
2929

30-
#include "common/tusb_common.h"
31-
#include "host/usbh.h"
3230
#include "cdc.h"
3331

3432
#ifdef __cplusplus

src/class/hid/hid_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_HID)
3030

31-
#include "common/tusb_common.h"
31+
#include "host/usbh.h"
3232
#include "hid_host.h"
3333

3434
//--------------------------------------------------------------------+

src/class/hid/hid_host.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,9 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27-
/** \addtogroup ClassDriver_HID
28-
* @{ */
29-
3027
#ifndef _TUSB_HID_HOST_H_
3128
#define _TUSB_HID_HOST_H_
3229

33-
#include "common/tusb_common.h"
34-
#include "host/usbh.h"
3530
#include "hid.h"
3631

3732
#ifdef __cplusplus
@@ -134,5 +129,3 @@ void hidh_close(uint8_t dev_addr);
134129
#endif
135130

136131
#endif /* _TUSB_HID_HOST_H_ */
137-
138-
/** @} */ // ClassDriver_HID

src/class/msc/msc.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27-
/** \ingroup group_class
28-
* \defgroup ClassDriver_MSC MassStorage (MSC)
29-
* @{ */
30-
31-
/** \defgroup ClassDriver_MSC_Common Common Definitions
32-
* @{ */
33-
3427
#ifndef _TUSB_MSC_H_
3528
#define _TUSB_MSC_H_
3629

@@ -387,6 +380,3 @@ TU_VERIFY_STATIC(sizeof(scsi_write10_t) == 10, "size is not correct");
387380
#endif
388381

389382
#endif /* _TUSB_MSC_H_ */
390-
391-
/// @}
392-
/// @}

src/class/msc/msc_host.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@
2828

2929
#if TUSB_OPT_HOST_ENABLED & CFG_TUH_MSC
3030

31-
//--------------------------------------------------------------------+
32-
// INCLUDE
33-
//--------------------------------------------------------------------+
34-
#include "common/tusb_common.h"
31+
#include "host/usbh.h"
3532
#include "msc_host.h"
3633

3734
//--------------------------------------------------------------------+

src/class/msc/msc_host.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#ifndef _TUSB_MSC_HOST_H_
2828
#define _TUSB_MSC_HOST_H_
2929

30-
#include "common/tusb_common.h"
31-
#include "host/usbh.h"
3230
#include "msc.h"
3331

3432
#ifdef __cplusplus

src/class/vendor/vendor_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
//--------------------------------------------------------------------+
3232
// INCLUDE
3333
//--------------------------------------------------------------------+
34-
#include "common/tusb_common.h"
34+
#include "host/usbh.h"
3535
#include "vendor_host.h"
3636

3737
//--------------------------------------------------------------------+

src/class/vendor/vendor_host.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27-
/** \ingroup group_class
28-
* \defgroup Group_Custom Custom Class (not supported yet)
29-
* @{ */
30-
3127
#ifndef _TUSB_VENDOR_HOST_H_
3228
#define _TUSB_VENDOR_HOST_H_
3329

3430
#include "common/tusb_common.h"
35-
#include "host/usbh.h"
3631

3732
#ifdef __cplusplus
3833
extern "C" {
@@ -70,5 +65,3 @@ void cush_close(uint8_t dev_addr);
7065
#endif
7166

7267
#endif /* _TUSB_VENDOR_HOST_H_ */
73-
74-
/** @} */

src/host/hub.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828

2929
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_HUB)
3030

31-
//--------------------------------------------------------------------+
32-
// INCLUDE
33-
//--------------------------------------------------------------------+
31+
#include "usbh.h"
3432
#include "hub.h"
3533

3634
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)