xref: /kernel/uniproton/src/fs/littlefs/lfs_conf.h (revision 54568cb3)
154568cb3Sopenharmony_ci/*
254568cb3Sopenharmony_ci * Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved.
354568cb3Sopenharmony_ci *
454568cb3Sopenharmony_ci * UniProton is licensed under Mulan PSL v2.
554568cb3Sopenharmony_ci * You can use this software according to the terms and conditions of the Mulan PSL v2.
654568cb3Sopenharmony_ci * You may obtain a copy of Mulan PSL v2 at:
754568cb3Sopenharmony_ci *          http://license.coscl.org.cn/MulanPSL2
854568cb3Sopenharmony_ci * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
954568cb3Sopenharmony_ci * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
1054568cb3Sopenharmony_ci * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
1154568cb3Sopenharmony_ci * See the Mulan PSL v2 for more details.
1254568cb3Sopenharmony_ci * Create: 2022-09-21
1354568cb3Sopenharmony_ci * Description: littlefs适配层代码
1454568cb3Sopenharmony_ci */
1554568cb3Sopenharmony_ci
1654568cb3Sopenharmony_ci#ifndef LFS_CONF_H
1754568cb3Sopenharmony_ci#define LFS_CONF_H
1854568cb3Sopenharmony_ci
1954568cb3Sopenharmony_ci#define LITTLE_FS_STANDARD_NAME_LENGTH 50
2054568cb3Sopenharmony_ci#define LITTLE_FS_MAX_NAME_LEN 255
2154568cb3Sopenharmony_ci
2254568cb3Sopenharmony_ci#define MAX_DEF_BUF_NUM 21
2354568cb3Sopenharmony_ci#define MAX_WRITE_FILE_LEN 500
2454568cb3Sopenharmony_ci#define MAX_READ_FILE_LEN 500
2554568cb3Sopenharmony_ci#define LITTLEFS_MAX_LFN_LEN 255
2654568cb3Sopenharmony_ci
2754568cb3Sopenharmony_ci#ifndef LFS_MAX_OPEN_DIRS
2854568cb3Sopenharmony_ci#define LFS_MAX_OPEN_DIRS 10
2954568cb3Sopenharmony_ci#endif
3054568cb3Sopenharmony_ci
3154568cb3Sopenharmony_ci#ifndef OS_LFS_MAX_OPEN_FILES
3254568cb3Sopenharmony_ci#define OS_LFS_MAX_OPEN_FILES   32
3354568cb3Sopenharmony_ci#endif
3454568cb3Sopenharmony_ci
3554568cb3Sopenharmony_ci#ifndef OS_LFS_MAX_MOUNT_SIZE
3654568cb3Sopenharmony_ci#define OS_LFS_MAX_MOUNT_SIZE   3
3754568cb3Sopenharmony_ci#endif
3854568cb3Sopenharmony_ci
3954568cb3Sopenharmony_ci#endif // LFS_CONF_H
40