summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-05-21 14:36:53 +0700
committerhathach <[email protected]>2025-05-21 14:36:53 +0700
commit58dfc126ac96d151bc6a9e9ee8bda564b52c350f (patch)
tree867bbf72174c1794d192c84811108d9303a7bfc0 /src
parent5551a3e430c1a330ec2a09121abc79fbb7b3c7b0 (diff)
remove unused dwc2_critical.h
Diffstat (limited to 'src')
-rw-r--r--src/portable/synopsys/dwc2/dwc2_critical.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/portable/synopsys/dwc2/dwc2_critical.h b/src/portable/synopsys/dwc2/dwc2_critical.h
deleted file mode 100644
index e2508c8fd..000000000
--- a/src/portable/synopsys/dwc2/dwc2_critical.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
- *
- * SPDX-License-Identifier: Apache-2.0
- */
-
-#ifndef TUSB_DWC2_CRITICAL_H_
-#define TUSB_DWC2_CRITICAL_H_
-
-#include "common/tusb_mcu.h"
-
-#if defined(TUP_USBIP_DWC2_ESP32)
- #include "freertos/FreeRTOS.h"
- static portMUX_TYPE dcd_lock = portMUX_INITIALIZER_UNLOCKED;
- #define DCD_ENTER_CRITICAL() portENTER_CRITICAL(&dcd_lock)
- #define DCD_EXIT_CRITICAL() portEXIT_CRITICAL(&dcd_lock)
-
-#else
- // Define critical section macros for DWC2 as no-op if not defined
- // This is to avoid breaking existing code that does not use critical section
- #define DCD_ENTER_CRITICAL() // no-op
- #define DCD_EXIT_CRITICAL() // no-op
-#endif
-
-#endif // TUSB_DWC2_CRITICAL_H_