Xiang Xiao
bd4e8e19d3
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:45:07 -06:00
Xiang Xiao
a8de37fbec
Ensure all source code end with one and only one newline
...
by this command:
git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2020-02-08 07:25:56 -06:00
Xiang Xiao
68951e8d72
Remove exra whitespace from files ( #189 )
...
* Remove multiple newlines at the end of files
* Remove the whitespace from the end of lines
2020-01-31 09:24:49 -06:00
Xiang Xiao
6a3c2aded6
Fix wait loop and void cast ( #24 )
...
* Simplify EINTR/ECANCEL error handling
1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx
* Unify the void cast usage
1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Ouss4
c9b4da61b0
fs/littlefs/lfs.c: Eliminate a warning about a local variable redefinition.
2019-12-08 08:06:49 -06:00
Gregory Nutt
bd3cc792ff
fs/: Run all .c files under fs/ through tools/nxstyle.
2019-10-27 11:48:14 -06:00
YanLin Zhu
c6dd9274e6
fs/littlefs/lfs.c: Fix lfs_format bug. In superblock disk root-block assignment, the second must be root[1].
2019-04-04 06:35:24 -06:00
Xiang Xiao
41ed2e153a
fs/littlefs/lfs_vfs.c: Lookahead should use bit unit not byte unit.
2019-03-19 08:21:17 -06:00
Gregory Nutt
be3dd0bac6
fs/: Fix various coding standard issues found while testing tools/nxstyle.c
2019-03-01 15:01:04 -06:00
Xiang Xiao
b9c55919b2
fs/littlefs/lfs_vfs.c: Fix typographical errors in the VFS wrapper.
2019-01-29 07:39:25 -06:00
Xiang Xiao
af5e479fb5
fs/littlefs: VFS wrapper improvement: (1) Support block device interface, (2) support ioctl, stat and sync file operation, (3) support forceformat and autoformat option, (4) update file->f_pos and dir->fd_position, (5)remote the internal struct from dir, and (6) emove mtd byte read/write requirement.
2019-01-27 12:31:28 -06:00
Xiang Xiao
c511ff7ea2
fs/littlefs: Fix a minor issue found in code review: (1) Replace printf to finfo/fwarn/ferr, (2) Replace malloc/free to kmm_malloc/kmm_free, (3) define LFS_NAME_MAX to NAME_MAX, (4) Check the big endian using CONFIG_ENDIAN_BIG.
2019-01-27 12:16:02 -06:00
Gregory Nutt
2ea2ae6456
fs/littlefs/lfs.c: Fix some issues introduced in previous commit.
2019-01-10 07:13:47 -06:00
Gregory Nutt
444ff759cd
fs/littlefs: Make all struct and enum names conform to the NuttX coding standard.
2019-01-10 06:37:53 -06:00
Gregory Nutt
a76773acf1
fs/littlefs: Fix a few more long lines reported by tools/nxstyle.c
2019-01-09 17:38:29 -06:00
Gregory Nutt
ae7646ee91
fs/littlefs: Correct some additional coding style problems reported by tools/nxstyle.c. Not all are easily fixed, however, due to some unusual parameter passing using by the original author.
2019-01-09 17:34:48 -06:00
Gregory Nutt
fcb5273250
fs/littlefs: Correct compilation errors when -std=c89 added to command line.
2019-01-09 15:17:42 -06:00
Gregory Nutt
61d92c216a
fs/littlefs: Make sure that ARM is included in BSD license.
2019-01-09 15:00:37 -06:00
lihaichen
87a5e4cd2d
Addes the ARM mbed littlefs to NuttX
...
Squashed commit of the following:
Author: Gregory Nutt <gnutt@nuttx.org>
fs/littlefs: Fix some compilation errors.
fs/littlefs: Brings code a little closer to NuttX coding standard. Not 100%, but closer.
fs/littlefs: Convert all C++ style comments to C comments.
Author: lihaichen <li8303@163.com>
fs/littlefs: Adds port of the mbed littlefs.
depends on !DISABLE_MOUNTPOINT && MTD_BYTE_WRITE
register_mtddriver("/dev/w25", mtd, 0755, NULL);
mount("/dev/w25", "/w25", "littlefs", 0, NULL);
2019-01-09 14:26:51 -06:00