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_ADAPTER_H 17 #define LFS_ADAPTER_H 18 19 #include "fcntl.h" 20 #include "sys/stat.h" 21 22 #include "dirent.h" 23 #include "errno.h" 24 #include "vfs_operations.h" 25 #include "lfs.h" 26 #include "lfs_conf.h" 27 #include "lfs_util.h" 28 #include "memory.h" 29 #include "pthread.h" 30 31 #define INVALID_DEVICE_ADDR (uintptr_t)(-1) 32 #define INVALID_FD (-1) 33 void OsLfsInit(void); 34 #endif /* LFS_ADAPTER_H */ 35