GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lx_nor_flash_initialize.c Lines: 4 4 100.0 %
Date: 2026-03-06 18:45:40 Branches: 0 0 - %

Line Branch Exec Source
1
/***************************************************************************
2
 * Copyright (c) 2024 Microsoft Corporation
3
 * Copyright (c) 2026-present Eclipse ThreadX contributors
4
 *
5
 * This program and the accompanying materials are made available under the
6
 * terms of the MIT License which is available at
7
 * https://opensource.org/licenses/MIT.
8
 *
9
 * SPDX-License-Identifier: MIT
10
 **************************************************************************/
11
12
13
/**************************************************************************/
14
/**************************************************************************/
15
/**                                                                       */
16
/** LevelX Component                                                      */
17
/**                                                                       */
18
/**   NOR Flash                                                           */
19
/**                                                                       */
20
/**************************************************************************/
21
/**************************************************************************/
22
23
#define LX_SOURCE_CODE
24
25
26
/* Include necessary system files.  */
27
28
#include "lx_api.h"
29
30
31
/* Define the NOR flash opened list head and opened count.  */
32
33
LX_NOR_FLASH   *_lx_nor_flash_opened_ptr;
34
ULONG           _lx_nor_flash_opened_count;
35
36
37
/**************************************************************************/
38
/*                                                                        */
39
/*  FUNCTION                                               RELEASE        */
40
/*                                                                        */
41
/*    _lx_nor_flash_initialize                            PORTABLE C      */
42
/*                                                           6.1.7        */
43
/*  AUTHOR                                                                */
44
/*                                                                        */
45
/*    William E. Lamie, Microsoft Corporation                             */
46
/*                                                                        */
47
/*  DESCRIPTION                                                           */
48
/*                                                                        */
49
/*    This function initializes the NOR flash data structures.            */
50
/*                                                                        */
51
/*  INPUT                                                                 */
52
/*                                                                        */
53
/*    None                                                                */
54
/*                                                                        */
55
/*  OUTPUT                                                                */
56
/*                                                                        */
57
/*    return status                                                       */
58
/*                                                                        */
59
/*  CALLS                                                                 */
60
/*                                                                        */
61
/*    None                                                                */
62
/*                                                                        */
63
/*  CALLED BY                                                             */
64
/*                                                                        */
65
/*    Application Code                                                    */
66
/*                                                                        */
67
/**************************************************************************/
68
4
UINT  _lx_nor_flash_initialize(void)
69
{
70
71
    /* Clear open list head pointer and opened count.  */
72
4
    _lx_nor_flash_opened_ptr =    LX_NULL;
73
4
    _lx_nor_flash_opened_count =  0;
74
75
    /* Return success!  */
76
4
    return(LX_SUCCESS);
77
}
78