mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-19 15:40:41 +00:00
more include clean up
This commit is contained in:
parent
f384d6f67e
commit
9ad6fadf6a
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_CDC)
|
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_CDC)
|
||||||
|
|
||||||
#include "common/tusb_common.h"
|
#include "host/usbh.h"
|
||||||
#include "cdc_host.h"
|
#include "cdc_host.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
#ifndef _TUSB_CDC_HOST_H_
|
#ifndef _TUSB_CDC_HOST_H_
|
||||||
#define _TUSB_CDC_HOST_H_
|
#define _TUSB_CDC_HOST_H_
|
||||||
|
|
||||||
#include "common/tusb_common.h"
|
|
||||||
#include "host/usbh.h"
|
|
||||||
#include "cdc.h"
|
#include "cdc.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_HID)
|
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_HID)
|
||||||
|
|
||||||
#include "common/tusb_common.h"
|
#include "host/usbh.h"
|
||||||
#include "hid_host.h"
|
#include "hid_host.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -24,14 +24,9 @@
|
|||||||
* This file is part of the TinyUSB stack.
|
* This file is part of the TinyUSB stack.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \addtogroup ClassDriver_HID
|
|
||||||
* @{ */
|
|
||||||
|
|
||||||
#ifndef _TUSB_HID_HOST_H_
|
#ifndef _TUSB_HID_HOST_H_
|
||||||
#define _TUSB_HID_HOST_H_
|
#define _TUSB_HID_HOST_H_
|
||||||
|
|
||||||
#include "common/tusb_common.h"
|
|
||||||
#include "host/usbh.h"
|
|
||||||
#include "hid.h"
|
#include "hid.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -134,5 +129,3 @@ void hidh_close(uint8_t dev_addr);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _TUSB_HID_HOST_H_ */
|
#endif /* _TUSB_HID_HOST_H_ */
|
||||||
|
|
||||||
/** @} */ // ClassDriver_HID
|
|
||||||
|
@ -24,13 +24,6 @@
|
|||||||
* This file is part of the TinyUSB stack.
|
* This file is part of the TinyUSB stack.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \ingroup group_class
|
|
||||||
* \defgroup ClassDriver_MSC MassStorage (MSC)
|
|
||||||
* @{ */
|
|
||||||
|
|
||||||
/** \defgroup ClassDriver_MSC_Common Common Definitions
|
|
||||||
* @{ */
|
|
||||||
|
|
||||||
#ifndef _TUSB_MSC_H_
|
#ifndef _TUSB_MSC_H_
|
||||||
#define _TUSB_MSC_H_
|
#define _TUSB_MSC_H_
|
||||||
|
|
||||||
@ -387,6 +380,3 @@ TU_VERIFY_STATIC(sizeof(scsi_write10_t) == 10, "size is not correct");
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _TUSB_MSC_H_ */
|
#endif /* _TUSB_MSC_H_ */
|
||||||
|
|
||||||
/// @}
|
|
||||||
/// @}
|
|
||||||
|
@ -28,10 +28,7 @@
|
|||||||
|
|
||||||
#if TUSB_OPT_HOST_ENABLED & CFG_TUH_MSC
|
#if TUSB_OPT_HOST_ENABLED & CFG_TUH_MSC
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
#include "host/usbh.h"
|
||||||
// INCLUDE
|
|
||||||
//--------------------------------------------------------------------+
|
|
||||||
#include "common/tusb_common.h"
|
|
||||||
#include "msc_host.h"
|
#include "msc_host.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
#ifndef _TUSB_MSC_HOST_H_
|
#ifndef _TUSB_MSC_HOST_H_
|
||||||
#define _TUSB_MSC_HOST_H_
|
#define _TUSB_MSC_HOST_H_
|
||||||
|
|
||||||
#include "common/tusb_common.h"
|
|
||||||
#include "host/usbh.h"
|
|
||||||
#include "msc.h"
|
#include "msc.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
2
src/class/vendor/vendor_host.c
vendored
2
src/class/vendor/vendor_host.c
vendored
@ -31,7 +31,7 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// INCLUDE
|
// INCLUDE
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
#include "common/tusb_common.h"
|
#include "host/usbh.h"
|
||||||
#include "vendor_host.h"
|
#include "vendor_host.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
7
src/class/vendor/vendor_host.h
vendored
7
src/class/vendor/vendor_host.h
vendored
@ -24,15 +24,10 @@
|
|||||||
* This file is part of the TinyUSB stack.
|
* This file is part of the TinyUSB stack.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \ingroup group_class
|
|
||||||
* \defgroup Group_Custom Custom Class (not supported yet)
|
|
||||||
* @{ */
|
|
||||||
|
|
||||||
#ifndef _TUSB_VENDOR_HOST_H_
|
#ifndef _TUSB_VENDOR_HOST_H_
|
||||||
#define _TUSB_VENDOR_HOST_H_
|
#define _TUSB_VENDOR_HOST_H_
|
||||||
|
|
||||||
#include "common/tusb_common.h"
|
#include "common/tusb_common.h"
|
||||||
#include "host/usbh.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -70,5 +65,3 @@ void cush_close(uint8_t dev_addr);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _TUSB_VENDOR_HOST_H_ */
|
#endif /* _TUSB_VENDOR_HOST_H_ */
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
@ -28,9 +28,7 @@
|
|||||||
|
|
||||||
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_HUB)
|
#if (TUSB_OPT_HOST_ENABLED && CFG_TUH_HUB)
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
#include "usbh.h"
|
||||||
// INCLUDE
|
|
||||||
//--------------------------------------------------------------------+
|
|
||||||
#include "hub.h"
|
#include "hub.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#define _TUSB_HUB_H_
|
#define _TUSB_HUB_H_
|
||||||
|
|
||||||
#include "common/tusb_common.h"
|
#include "common/tusb_common.h"
|
||||||
#include "usbh.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -34,10 +34,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
#include "common/tusb_common.h"
|
||||||
// INCLUDE
|
|
||||||
//--------------------------------------------------------------------+
|
|
||||||
#include "osal/osal.h" // TODO refractor move to common.h ?
|
|
||||||
#include "hcd.h"
|
#include "hcd.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
@ -67,10 +64,6 @@ typedef struct {
|
|||||||
|
|
||||||
typedef bool (*tuh_control_complete_cb_t)(uint8_t dev_addr, tusb_control_request_t const * request, xfer_result_t result);
|
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
|
// APPLICATION API
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#include "device/dcd.h"
|
#include "device/dcd.h"
|
||||||
#include "osal/osal.h"
|
|
||||||
|
|
||||||
#define CXD56_EPNUM (7)
|
#define CXD56_EPNUM (7)
|
||||||
#define CXD56_SETUP_QUEUE_DEPTH (4)
|
#define CXD56_SETUP_QUEUE_DEPTH (4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user