GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lx_nand_flash_defragment.c Lines: 2 2 100.0 %
Date: 2024-03-11 05:20:25 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
/** LevelX Component                                                      */
16
/**                                                                       */
17
/**   NAND Flash                                                          */
18
/**                                                                       */
19
/**************************************************************************/
20
/**************************************************************************/
21
22
#define LX_SOURCE_CODE
23
24
25
/* Disable ThreadX error checking.  */
26
27
#ifndef LX_DISABLE_ERROR_CHECKING
28
#define LX_DISABLE_ERROR_CHECKING
29
#endif
30
31
32
/* Include necessary system files.  */
33
34
#include "lx_api.h"
35
36
37
/**************************************************************************/
38
/*                                                                        */
39
/*  FUNCTION                                               RELEASE        */
40
/*                                                                        */
41
/*    _lx_nand_flash_defragment                           PORTABLE C      */
42
/*                                                           6.2.1       */
43
/*  AUTHOR                                                                */
44
/*                                                                        */
45
/*    William E. Lamie, Microsoft Corporation                             */
46
/*                                                                        */
47
/*  DESCRIPTION                                                           */
48
/*                                                                        */
49
/*    This function defragments the NAND flash.                           */
50
/*                                                                        */
51
/*  INPUT                                                                 */
52
/*                                                                        */
53
/*    nand_flash                            NAND flash instance           */
54
/*                                                                        */
55
/*  OUTPUT                                                                */
56
/*                                                                        */
57
/*    return status                                                       */
58
/*                                                                        */
59
/*  CALLS                                                                 */
60
/*                                                                        */
61
/*    _lx_nand_flash_block_reclaim          Reclaim a NAND flash block    */
62
/*    tx_mutex_get                          Get thread protection         */
63
/*    tx_mutex_put                          Release thread protection     */
64
/*                                                                        */
65
/*  CALLED BY                                                             */
66
/*                                                                        */
67
/*    Application Code                                                    */
68
/*    Internal LevelX                                                     */
69
/*                                                                        */
70
/*  RELEASE HISTORY                                                       */
71
/*                                                                        */
72
/*    DATE              NAME                      DESCRIPTION             */
73
/*                                                                        */
74
/*  05-19-2020     William E. Lamie         Initial Version 6.0           */
75
/*  09-30-2020     William E. Lamie         Modified comment(s),          */
76
/*                                            resulting in version 6.1    */
77
/*  06-02-2021     Bhupendra Naphade        Modified comment(s),          */
78
/*                                            resulting in version 6.1.7  */
79
/*  03-08-2023     Xiuwen Cai               Modified comment(s),          */
80
/*                                            deprecated this API,        */
81
/*                                            resulting in version 6.2.1 */
82
/*                                                                        */
83
/**************************************************************************/
84
2
UINT  _lx_nand_flash_defragment(LX_NAND_FLASH *nand_flash)
85
{
86
87
    LX_PARAMETER_NOT_USED(nand_flash);
88
89
    /* Return not supported.  */
90
2
    return(LX_NOT_SUPPORTED);
91
}
92
93