Skip to content

Conversation

mikaleppanen
Copy link

Summary of changes

Added NS filesystem API module to mbed-os Nanostack HAL. Module provides kv_store interface for the Nanostack. Feature is disabled by default on .json configuration.

Impact of changes

None

Migration actions required

None

Documentation

None


Pull request type

[] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[X] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[X] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers

@mikter @artokin @juhhei01 @JarkkoPaso


@ciarmcom
Copy link
Member

@mikaleppanen, thank you for your changes.
@JarkkoPaso @artokin @mikter @juhhei01 @ARMmbed/mbed-os-maintainers please review.

},
"use-kvstore": {
"help": "Use Mbed OS KVStore API instead of filesystem. Default: false",
"value": false
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be ok to set this true by default?

mikter
mikter previously approved these changes Apr 28, 2020
@mikter mikter requested a review from SeppoTakalo April 28, 2020 13:05
@mergify mergify bot dismissed mikter’s stale review April 28, 2020 13:05

Pull request has been modified.

void ns_file_system_api_init(void)
{
ns_file_system_set_root_path(MBED_CONF_NANOSTACK_HAL_KVSTORE_PATH);
ns_file_system_callbacks_set(ns_file_system_api_open, ns_file_system_api_close, ns_file_system_api_remove, ns_file_system_api_write, ns_file_system_api_read, ns_file_system_api_size);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather long line length

@mergify mergify bot added needs: CI and removed needs: work labels Apr 28, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Apr 29, 2020

CI started

@mbed-ci
Copy link

mbed-ci commented Apr 29, 2020

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants