forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subsys/settings: Reworked settings module
Preparation to fix zephyrproject-rtos#12160 - settings NVS backend To allow easier integration of backends the settings module has been reworked. Major changes are: 1. Change to the api: the set() routines are now of the form: ''set(int argc, char **argv, size_t len, read_cb read, void *cb_arg)'' the length that was found in the backend in len, and the data can be read using: ''read(data, len, cb_arg); 2. The reading of data in the set routines is directly reading in the backend. 3. The records no longer need to be in the line format 4. The runtime interface has been removed (temporarily). A runtime backend will be added. 5. Only the fcb backend is supported at the moment 6. A sample is added under samples/subsys/nsettings More rework, changes: 1. Runtime "backend" added 2. Reworked configuration of the module. It now allows the selection of a default backend (only FCB at the moment). This sets up the settings src and dst to use the default backend. Other sources could be added by the application. These sources could also be of different type. The module can also be configured without a backend, in this case the application needs to set up the sources and destinations itself. Signed-off-by: Laczen JMS <laczenjms@gmail.com>
- Loading branch information
Showing
9 changed files
with
397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.