mirror of
https://github.com/hathach/tinyusb.git
synced 2026-03-30 11:23:34 +00:00
fix compile issue when enable both host and device for dwc2
This commit is contained in:
@ -1050,7 +1050,6 @@ static void handle_ep_irq(uint8_t rhport, uint8_t dir) {
|
||||
Note: when OTG_MULTI_PROC_INTRPT = 1, Device Each endpoint interrupt deachint/deachmsk/diepeachmsk/doepeachmsk
|
||||
are combined to generate dedicated interrupt line for each endpoint.
|
||||
*/
|
||||
//-V::2584::{gintsts} PVS-Studio suppression
|
||||
void dcd_int_handler(uint8_t rhport) {
|
||||
dwc2_regs_t* dwc2 = DWC2_REG(rhport);
|
||||
const uint32_t gintmask = dwc2->gintmsk;
|
||||
|
||||
@ -29,16 +29,6 @@
|
||||
#define DWC2_COMMON_DEBUG 2
|
||||
|
||||
#if defined(TUP_USBIP_DWC2) && (CFG_TUH_ENABLED || CFG_TUD_ENABLED)
|
||||
|
||||
#if CFG_TUD_ENABLED
|
||||
#include "device/dcd.h"
|
||||
#endif
|
||||
|
||||
#if CFG_TUH_ENABLED
|
||||
#include "host/hcd.h"
|
||||
#include "host/usbh.h"
|
||||
#endif
|
||||
|
||||
#include "dwc2_common.h"
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
@ -30,6 +30,14 @@
|
||||
#include "common/tusb_common.h"
|
||||
#include "dwc2_type.h"
|
||||
|
||||
#if CFG_TUD_ENABLED
|
||||
#include "device/dcd.h"
|
||||
#endif
|
||||
|
||||
#if CFG_TUH_ENABLED
|
||||
#include "host/hcd.h"
|
||||
#endif
|
||||
|
||||
// Following symbols must be defined by port header
|
||||
// - _dwc2_controller[]: array of controllers
|
||||
// - DWC2_EP_MAX: largest EP counts of all controllers
|
||||
|
||||
Reference in New Issue
Block a user