summaryrefslogtreecommitdiff
path: root/common/usbx_host_controllers/src/ux_hcd_ehci_initialize.c
diff options
context:
space:
mode:
authorMAY <[email protected]>2025-12-03 20:11:38 +0100
committerMAY <[email protected]>2026-01-20 03:24:27 +0100
commitce4baf2e3ae331d938afb7a6a544a8da308c694b (patch)
tree93f3f892474d2b4eceaa4b0757d7a3d1dd14afc2 /common/usbx_host_controllers/src/ux_hcd_ehci_initialize.c
parent515c9a431bd7bb8ae553ce33a9b5dd6a3d165474 (diff)
Refer to ux internal marco instead of using direct tx
Diffstat (limited to 'common/usbx_host_controllers/src/ux_hcd_ehci_initialize.c')
-rw-r--r--common/usbx_host_controllers/src/ux_hcd_ehci_initialize.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/common/usbx_host_controllers/src/ux_hcd_ehci_initialize.c b/common/usbx_host_controllers/src/ux_hcd_ehci_initialize.c
index cde5fb7..c454b8f 100644
--- a/common/usbx_host_controllers/src/ux_hcd_ehci_initialize.c
+++ b/common/usbx_host_controllers/src/ux_hcd_ehci_initialize.c
@@ -1,10 +1,10 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
@@ -425,12 +425,15 @@ UINT status = UX_SUCCESS;
if (hcd_ehci -> ux_hcd_ehci_hsiso_td_list)
_ux_utility_memory_free(hcd_ehci -> ux_hcd_ehci_hsiso_td_list);
#endif
- if (hcd_ehci -> ux_hcd_ehci_periodic_mutex.tx_mutex_id != 0)
+ if (_ux_host_mutex_created(&hcd_ehci -> ux_hcd_ehci_periodic_mutex))
_ux_host_mutex_delete(&hcd_ehci -> ux_hcd_ehci_periodic_mutex);
- if (hcd_ehci -> ux_hcd_ehci_protect_semaphore.tx_semaphore_id != 0)
+
+ if (_ux_host_semaphore_created(&hcd_ehci -> ux_hcd_ehci_protect_semaphore))
_ux_host_semaphore_delete(&hcd_ehci -> ux_hcd_ehci_protect_semaphore);
- if (hcd_ehci -> ux_hcd_ehci_doorbell_semaphore.tx_semaphore_id != 0)
+
+ if (_ux_host_semaphore_created(&hcd_ehci -> ux_hcd_ehci_doorbell_semaphore))
_ux_host_semaphore_delete(&hcd_ehci -> ux_hcd_ehci_doorbell_semaphore);
+
_ux_utility_memory_free(hcd_ehci);
/* Return error status code. */