GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: fx_media_format_oem_name_set.c Lines: 4 4 100.0 %
Date: 2024-01-10 21:53:23 Branches: 2 2 100.0 %

Line Branch Exec Source
1
/**************************************************************************/
2
/*                                                                        */
3
/*       Copyright (c) Microsoft Corporation. All rights reserved.        */
4
/*                                                                        */
5
/*       This software is licensed under the Microsoft Software License   */
6
/*       Terms for Microsoft Azure RTOS. Full text of the license can be  */
7
/*       found in the LICENSE file at https://aka.ms/AzureRTOS_EULA       */
8
/*       and in the root directory of this software.                      */
9
/*                                                                        */
10
/**************************************************************************/
11
12
13
/**************************************************************************/
14
/**************************************************************************/
15
/**                                                                       */
16
/** FileX Component                                                       */
17
/**                                                                       */
18
/**   Media                                                               */
19
/**                                                                       */
20
/**************************************************************************/
21
/**************************************************************************/
22
23
#define FX_SOURCE_CODE
24
25
26
/* Include necessary system files.  */
27
28
#include "fx_api.h"
29
#include "fx_media.h"
30
31
32
/* Define external reference to OEM name string.  */
33
34
extern UCHAR   _fx_media_format_oem_name[8];
35
UINT  fx_media_format_oem_name_set(UCHAR new_oem_name[8]);
36
37
/**************************************************************************/
38
/*                                                                        */
39
/*  FUNCTION                                               RELEASE        */
40
/*                                                                        */
41
/*    _fx_media_format_oem_name_set                       PORTABLE C      */
42
/*                                                           6.1.5        */
43
/*  AUTHOR                                                                */
44
/*                                                                        */
45
/*    William E. Lamie, Microsoft Corporation                             */
46
/*                                                                        */
47
/*  DESCRIPTION                                                           */
48
/*                                                                        */
49
/*    This function modifies the default OEM name for all formatting. The */
50
/*    new OEM name must be 8 characters long - blank padded if necessary. */
51
/*                                                                        */
52
/*                                                                        */
53
/*  INPUT                                                                 */
54
/*                                                                        */
55
/*    new_oem_name                          Pointer to new OEM name       */
56
/*                                                                        */
57
/*  OUTPUT                                                                */
58
/*                                                                        */
59
/*    Completion Status                                                   */
60
/*                                                                        */
61
/*  CALLS                                                                 */
62
/*                                                                        */
63
/*    None                                                                */
64
/*                                                                        */
65
/*  CALLED BY                                                             */
66
/*                                                                        */
67
/*    Application Code                                                    */
68
/*                                                                        */
69
/*  RELEASE HISTORY                                                       */
70
/*                                                                        */
71
/*    DATE              NAME                      DESCRIPTION             */
72
/*                                                                        */
73
/*  05-19-2020     William E. Lamie         Initial Version 6.0           */
74
/*  09-30-2020     William E. Lamie         Modified comment(s),          */
75
/*                                            resulting in version 6.1    */
76
/*  03-02-2021     William E. Lamie         Modified comment(s),          */
77
/*                                            resulting in version 6.1.5  */
78
/*                                                                        */
79
/**************************************************************************/
80
1
UINT  fx_media_format_oem_name_set(UCHAR new_oem_name[8])
81
{
82
83
UINT    i;
84
85
86
    /* Simply copy the new OEM name into the default location.  */
87
9
    for (i = 0; i < 8; i++)
88
    {
89
90
        /* Copy one character of the new OEM name.  */
91
8
        _fx_media_format_oem_name[i] =  new_oem_name[i];
92
    }
93
94
    /* Return success.  */
95
1
    return(FX_SUCCESS);
96
}
97