Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
ec9f3743
Commit
ec9f3743
authored
7 years ago
by
Vincent Dupont
Browse files
Options
Downloads
Patches
Plain Diff
fs/spiffs: improve documentation
parent
39c60510
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/spiffs/doc.txt
+1
-1
1 addition, 1 deletion
pkg/spiffs/doc.txt
sys/include/fs/spiffs_fs.h
+28
-3
28 additions, 3 deletions
sys/include/fs/spiffs_fs.h
with
29 additions
and
4 deletions
pkg/spiffs/doc.txt
+
1
−
1
View file @
ec9f3743
...
...
@@ -4,4 +4,4 @@
* @ingroup sys_fs
* @brief Provides a file system for SPI NOR flash devices
* @see https://github.com/pellepl/spiffs
*/
\ No newline at end of file
*/
This diff is collapsed.
Click to expand it.
sys/include/fs/spiffs_fs.h
+
28
−
3
View file @
ec9f3743
...
...
@@ -8,7 +8,12 @@
/**
* @defgroup sys_spiffs SPIFFS integration
* @ingroup sys_fs
* @ingroup pkg_spiffs
* @brief RIOT integration of SPIFFS
*
* The RIOT integration of SPIFFS follows the SPIFFS wiki:
* https://github.com/pellepl/spiffs/wiki/Integrate-spiffs#integrating-spiffs
*
* @{
*
* @file
...
...
@@ -42,17 +47,37 @@ extern "C" {
* @{
*/
#ifndef SPIFFS_FS_CACHE_SIZE
#if SPIFFS_CACHE
#if SPIFFS_CACHE || defined(DOXYGEN)
/**
* @brief the size of the cache buffer
*
* Ignored if cache is disabled in build config. One cache page will be slightly
* larger than the logical page size. The more ram, the more cache pages,
* the quicker the system.
*/
#define SPIFFS_FS_CACHE_SIZE (512)
#else
#define SPIFFS_FS_CACHE_SIZE (0)
#endif
/* SPIFFS_CACHE */
#endif
/* SPIFFS_FS_CACHE_SIZE */
#ifndef SPIFFS_FS_WORK_SIZE
/**
* @brief The size of the work buffer
*
* A ram memory buffer being double the size of the logical page size
* This buffer is used extensively by the spiffs stack.
* If logical page size is 256, this buffer must be 512 bytes.
*/
#define SPIFFS_FS_WORK_SIZE (512)
#endif
#ifndef SPIFFS_FS_FD_SPACE_SIZE
#define SPIFFS_FS_FD_SPACE_SIZE (125)
/**
* @brief the size of the file descriptor buffer
*
* A file descriptor normally is around 32 bytes depending on the build config -
* the bigger the buffer, the more file descriptors are available.
*/
#define SPIFFS_FS_FD_SPACE_SIZE (4 * 32)
#endif
/** @} */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment