1 /* 2 * Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved. 3 * 4 * UniProton is licensed under Mulan PSL v2. 5 * You can use this software according to the terms and conditions of the Mulan PSL v2. 6 * You may obtain a copy of Mulan PSL v2 at: 7 * http://license.coscl.org.cn/MulanPSL2 8 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, 9 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 10 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 11 * See the Mulan PSL v2 for more details. 12 * Create: 2022-09-21 13 * Description: littlefs适配层代码 14 */ 15 16 #ifndef LFS_CONF_H 17 #define LFS_CONF_H 18 19 #define LITTLE_FS_STANDARD_NAME_LENGTH 50 20 #define LITTLE_FS_MAX_NAME_LEN 255 21 22 #define MAX_DEF_BUF_NUM 21 23 #define MAX_WRITE_FILE_LEN 500 24 #define MAX_READ_FILE_LEN 500 25 #define LITTLEFS_MAX_LFN_LEN 255 26 27 #ifndef LFS_MAX_OPEN_DIRS 28 #define LFS_MAX_OPEN_DIRS 10 29 #endif 30 31 #ifndef OS_LFS_MAX_OPEN_FILES 32 #define OS_LFS_MAX_OPEN_FILES 32 33 #endif 34 35 #ifndef OS_LFS_MAX_MOUNT_SIZE 36 #define OS_LFS_MAX_MOUNT_SIZE 3 37 #endif 38 39 #endif // LFS_CONF_H 40