mirror of
https://gitee.com/openharmony/third_party_littlefs
synced 2024-11-27 00:50:38 +00:00
afa4ad8254
Tests can be found in 'tests/test_blah.sh' Tests can be run with 'make test'
32 lines
680 B
C
32 lines
680 B
C
/*
|
|
* Configuration and type definitions
|
|
*
|
|
* Copyright (c) 2017 Christopher Haster
|
|
* Distributed under the MIT license
|
|
*/
|
|
#ifndef LFS_CONFIG_H
|
|
#define LFS_CONFIG_H
|
|
|
|
#include <stdint.h>
|
|
|
|
// Type definitions
|
|
typedef uint32_t lfs_size_t;
|
|
typedef uint32_t lfs_off_t;
|
|
|
|
typedef int32_t lfs_ssize_t;
|
|
typedef int32_t lfs_soff_t;
|
|
|
|
typedef uint32_t lfs_block_t;
|
|
|
|
// Maximum length of file name
|
|
#define LFS_NAME_MAX 255
|
|
|
|
// Logging operations
|
|
#include <stdio.h>
|
|
#define LFS_ERROR(fmt, ...) printf("lfs error: " fmt "\n", __VA_ARGS__)
|
|
#define LFS_WARN(fmt, ...) printf("lfs warn: " fmt "\n", __VA_ARGS__)
|
|
#define LFS_INFO(fmt, ...) printf("lfs info: " fmt "\n", __VA_ARGS__)
|
|
|
|
|
|
#endif
|