GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: core/src/ux_system_uninitialize.c Lines: 3 3 100.0 %
Date: 2024-12-12 17:16:36 Branches: 0 0 - %

Line Branch Exec Source
1
/***************************************************************************
2
 * Copyright (c) 2024 Microsoft Corporation
3
 *
4
 * This program and the accompanying materials are made available under the
5
 * terms of the MIT License which is available at
6
 * https://opensource.org/licenses/MIT.
7
 *
8
 * SPDX-License-Identifier: MIT
9
 **************************************************************************/
10
11
12
/**************************************************************************/
13
/**************************************************************************/
14
/**                                                                       */
15
/** USBX Component                                                        */
16
/**                                                                       */
17
/**   System                                                              */
18
/**                                                                       */
19
/**************************************************************************/
20
/**************************************************************************/
21
22
23
/* Include necessary system files.  */
24
25
#define UX_SOURCE_CODE
26
27
#include "ux_api.h"
28
#include "ux_system.h"
29
#include "ux_utility.h"
30
31
32
/**************************************************************************/
33
/*                                                                        */
34
/*  FUNCTION                                               RELEASE        */
35
/*                                                                        */
36
/*    _ux_system_uninitialize                             PORTABLE C      */
37
/*                                                           6.1.10       */
38
/*  AUTHOR                                                                */
39
/*                                                                        */
40
/*    Chaoqiong Xiao, Microsoft Corporation                               */
41
/*                                                                        */
42
/*  DESCRIPTION                                                           */
43
/*                                                                        */
44
/*    This function uninitializes the various control data structures for */
45
/*    the USBX system.                                                    */
46
/*                                                                        */
47
/*  INPUT                                                                 */
48
/*                                                                        */
49
/*  OUTPUT                                                                */
50
/*                                                                        */
51
/*    None                                                                */
52
/*                                                                        */
53
/*  CALLS                                                                 */
54
/*                                                                        */
55
/*    _ux_utility_mutex_delete                ThreadX delete mutex        */
56
/*                                                                        */
57
/*  CALLED BY                                                             */
58
/*                                                                        */
59
/*    Application                                                         */
60
/*                                                                        */
61
/*  RELEASE HISTORY                                                       */
62
/*                                                                        */
63
/*    DATE              NAME                      DESCRIPTION             */
64
/*                                                                        */
65
/*  05-19-2020     Chaoqiong Xiao           Initial Version 6.0           */
66
/*  09-30-2020     Chaoqiong Xiao           Modified comment(s),          */
67
/*                                            resulting in version 6.1    */
68
/*  01-31-2022     Chaoqiong Xiao           Modified comment(s),          */
69
/*                                            added standalone support,   */
70
/*                                            resulting in version 6.1.10 */
71
/*                                                                        */
72
/**************************************************************************/
73
316
UINT  _ux_system_uninitialize(VOID)
74
{
75
76
    /* Delete the Mutex object used by USBX to control critical sections.  */
77
316
    _ux_system_mutex_delete(&_ux_system -> ux_system_mutex);
78
79
316
    return(UX_SUCCESS);
80
}
81
82