Searched +full:- +full:include (Results 1 – 16 of 16) sorted by relevance
/littlefs-2.7.6/ |
D | lfs_util.h | 5 * SPDX-License-Identifier: BSD-3-Clause 11 // LFS_CONFIG as a header file to include (-DLFS_CONFIG=lfs_config.h). 19 #include LFS_STRINGIZE(LFS_CONFIG) 23 #include <stdint.h> 24 #include <stdbool.h> 25 #include <string.h> 26 #include <inttypes.h> 29 #include <stdlib.h> 33 #include <sys/__assert.h> 35 #include <assert.h> [all …]
|
D | lfs_util.c | 5 * SPDX-License-Identifier: BSD-3-Clause 7 #include "lfs_util.h"
|
D | Makefile | 16 override CFLAGS += -O0 -g3 18 override CFLAGS += -Os 21 override CFLAGS += -m$(WORD) 24 override CFLAGS += -DLFS_YES_TRACE 26 override CFLAGS += -I. 27 override CFLAGS += -std=c99 -Wall -pedantic 28 override CFLAGS += -Wextra -Wshadow -Wjump-misses-init -Wundef 29 # Remove missing-field-initializers because of GCC bug 30 override CFLAGS += -Wno-missing-field-initializers 33 override TFLAGS += -v [all …]
|
D | lfs.h | 5 * SPDX-License-Identifier: BSD-3-Clause 10 #include <stdint.h> 11 #include <stdbool.h> 22 // Major (top-nibble), incremented on backwards incompatible changes 23 // Minor (bottom-nibble), incremented on feature additions 28 // Version of On-disk data structures 29 // Major (top-nibble), incremented on backwards incompatible changes 30 // Minor (bottom-nibble), incremented on feature additions 73 LFS_ERR_IO = -5, // Error during device operation 74 LFS_ERR_CORRUPT = -84, // Corrupted [all …]
|
D | README.md | 3 A little fail-safe filesystem designed for microcontrollers. 6 | | | .---._____ 7 .-----. | | 8 --|o |---| littlefs | 9 --| |---| | 10 '-----' '----------' 14 **Power-loss resilience** - littlefs is designed to handle random power 15 failures. All file operations have strong copy-on-write guarantees and if 18 **Dynamic wear leveling** - littlefs is designed with flash in mind, and 22 **Bounded RAM/ROM** - littlefs is designed to work with a small amount of [all …]
|
D | .travis.yml | 4 - CFLAGS=-Werror 5 - MAKEFLAGS=-j 11 - $HOME/.cache/apt 14 _: &install-common 16 - sudo apt-get install python3 python3-pip 17 - sudo pip3 install toml 18 # setup a ram-backed disk to speed up reentrant tests 19 - mkdir disks 20 - sudo mount -t tmpfs -o size=100m tmpfs disks 21 - export TFLAGS="$TFLAGS --disk=disks/disk" [all …]
|
D | lfs.c | 5 * SPDX-License-Identifier: BSD-3-Clause 7 #include "lfs.h" 8 #include "lfs_util.h" 10 #define LFS_BLOCK_NULL ((lfs_block_t)-1) 11 #define LFS_BLOCK_INLINE ((lfs_block_t)-2) 18 rcache->block = LFS_BLOCK_NULL; in lfs_cache_drop() 23 memset(pcache->buffer, 0xff, lfs->cfg->cache_size); in lfs_cache_zero() 24 pcache->block = LFS_BLOCK_NULL; in lfs_cache_zero() 32 if (block >= lfs->cfg->block_count || in lfs_bd_read() 33 off+size > lfs->cfg->block_size) { in lfs_bd_read() [all …]
|
D | DESIGN.md | 3 A little fail-safe filesystem designed for microcontrollers. 6 | | | .---._____ 7 .-----. | | 8 --|o |---| littlefs | 9 --| |---| | 10 '-----' '----------' 16 filesystem that is resilient to power-loss and flash wear without using 19 This document covers the high-level design of littlefs, how it is different 21 low-level details covering every bit on disk, check out [SPEC.md](SPEC.md). 25 The embedded systems littlefs targets are usually 32-bit microcontrollers with [all …]
|
/littlefs-2.7.6/bd/ |
D | lfs_testbd.h | 6 * SPDX-License-Identifier: BSD-3-Clause 11 #include "lfs.h" 12 #include "lfs_util.h" 13 #include "bd/lfs_rambd.h" 14 #include "bd/lfs_filebd.h" 30 // some real-world circumstances such as progs not sticking (prog-noop), 31 // a readonly disk (erase-noop), and ECC failures (read-error). 33 // Not that read-noop is not allowed. Read _must_ return a consistent (but 49 // 8-bit erase value to use for simulating erases. -1 does not simulate 50 // erases, which can speed up testing by avoiding all the extra block-device [all …]
|
D | lfs_filebd.c | 5 * SPDX-License-Identifier: BSD-3-Clause 7 #include "bd/lfs_filebd.h" 9 #include <fcntl.h> 10 #include <unistd.h> 11 #include <errno.h> 21 (void*)cfg, cfg->context, in lfs_filebd_createcfg() 22 (void*)(uintptr_t)cfg->read, (void*)(uintptr_t)cfg->prog, in lfs_filebd_createcfg() 23 (void*)(uintptr_t)cfg->erase, (void*)(uintptr_t)cfg->sync, in lfs_filebd_createcfg() 24 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_filebd_createcfg() 25 path, (void*)bdcfg, bdcfg->erase_value); in lfs_filebd_createcfg() [all …]
|
D | lfs_rambd.h | 5 * SPDX-License-Identifier: BSD-3-Clause 10 #include "lfs.h" 11 #include "lfs_util.h" 28 // 8-bit erase value to simulate erasing with. -1 indicates no erase
|
D | lfs_filebd.h | 5 * SPDX-License-Identifier: BSD-3-Clause 10 #include "lfs.h" 11 #include "lfs_util.h" 28 // 8-bit erase value to use for simulating erases. -1 does not simulate 29 // erases, which can speed up testing by avoiding all the extra block-device
|
D | lfs_testbd.c | 6 * SPDX-License-Identifier: BSD-3-Clause 8 #include "bd/lfs_testbd.h" 10 #include <stdlib.h> 23 (void*)cfg, cfg->context, in lfs_testbd_createcfg() 24 (void*)(uintptr_t)cfg->read, (void*)(uintptr_t)cfg->prog, in lfs_testbd_createcfg() 25 (void*)(uintptr_t)cfg->erase, (void*)(uintptr_t)cfg->sync, in lfs_testbd_createcfg() 26 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_testbd_createcfg() 27 path, (void*)bdcfg, bdcfg->erase_value, bdcfg->erase_cycles, in lfs_testbd_createcfg() 28 bdcfg->badblock_behavior, bdcfg->power_cycles, in lfs_testbd_createcfg() 29 bdcfg->buffer, bdcfg->wear_buffer); in lfs_testbd_createcfg() [all …]
|
D | lfs_rambd.c | 5 * SPDX-License-Identifier: BSD-3-Clause 7 #include "bd/lfs_rambd.h" 16 (void*)cfg, cfg->context, in lfs_rambd_createcfg() 17 (void*)(uintptr_t)cfg->read, (void*)(uintptr_t)cfg->prog, in lfs_rambd_createcfg() 18 (void*)(uintptr_t)cfg->erase, (void*)(uintptr_t)cfg->sync, in lfs_rambd_createcfg() 19 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_rambd_createcfg() 20 (void*)bdcfg, bdcfg->erase_value, bdcfg->buffer); in lfs_rambd_createcfg() 21 lfs_rambd_t *bd = cfg->context; in lfs_rambd_createcfg() 22 bd->cfg = bdcfg; in lfs_rambd_createcfg() 25 if (bd->cfg->buffer) { in lfs_rambd_createcfg() [all …]
|
/littlefs-2.7.6/scripts/ |
D | explode_asserts.py | 138 outf.write("#include <stdio.h>\n") 139 outf.write("#include <stdbool.h>\n") 140 outf.write("#include <stdint.h>\n") 141 outf.write("#include <inttypes.h>\n") 142 outf.write("#include <signal.h>\n") 188 'op': ['strcmp', 'memcmp', '->'], 377 parser.add_argument('-o', '--output', required=True, 379 parser.add_argument('-p', '--pattern', action='append', 381 parser.add_argument('--maxwidth', default=MAXWIDTH, type=int,
|
D | test.py | 27 ./scripts/explode_asserts.py $$< -o $$@ 31 -include tests/*.d 35 $(CC) $(CFLAGS) $^ $(LFLAGS) -o $@ 39 #include "lfs.h" 40 #include "bd/lfs_testbd.h" 41 #include <stdio.h> 50 'LFS_BLOCK_CYCLES': -1, 217 print('truncate --size=0', disk) 223 # simulate power-loss after n cycles? 231 ncmd.extend(['-ex', 'r']) [all …]
|