/*************************************************************************** * 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 **************************************************************************/ /**************************************************************************/ /**************************************************************************/ /** */ /** USBX Component */ /** */ /** Trace */ /** */ /**************************************************************************/ /**************************************************************************/ #ifndef UX_SOURCE_CODE #define UX_SOURCE_CODE #endif /* Include necessary system files. */ #include "ux_api.h" #ifdef UX_ENABLE_EVENT_TRACE extern VOID _tx_trace_object_unregister(VOID *); /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _ux_trace_object_unregister PORTABLE C */ /* 6.1.9 */ /* AUTHOR */ /* */ /* Chaoqiong Xiao, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This function unregisters a USBX object in the trace registry. */ /* */ /* INPUT */ /* */ /* object_pointer Address of system object */ /* */ /* OUTPUT */ /* */ /* None */ /* */ /* CALLS */ /* */ /* _tx_trace_object_unregister Actual unregister function */ /* */ /* CALLED BY */ /* */ /* USBX delete functions */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 */ /* 09-30-2020 Chaoqiong Xiao Modified comment(s), */ /* used UX prefix to refer to */ /* TX symbols instead of using */ /* them directly, */ /* resulting in version 6.1 */ /* 10-15-2021 Chaoqiong Xiao Modified comment(s), */ /* improved traceX support, */ /* resulting in version 6.1.9 */ /* */ /**************************************************************************/ VOID _ux_trace_object_unregister(VOID *object_ptr) { UX_INTERRUPT_SAVE_AREA /* Disable interrupts. */ UX_DISABLE /* Call actual object unregister function. */ _tx_trace_object_unregister(object_ptr); /* Restore interrupts. */ UX_RESTORE } #endif