Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G3P-7268: add method to set blocking mode #4

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pw_build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pw_add_library_generic(pw_build.pedantic_warnings INTERFACE
"-Wno-gnu-zero-variadic-macro-arguments"

# TODO: b/333712899 - Enable C23 extension warnings.
"-Wno-c23-extensions"
"-Wno-c2x-extensions"

# TODO: b/335021928 - Enable C++ 20 extension warnings.
"-Wno-c++20-extensions"
Expand Down
3 changes: 3 additions & 0 deletions pw_kvs/public/pw_kvs/flash_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "pw_span/span.h"
#include "pw_status/status.h"
#include "pw_status/status_with_size.h"
#include "cmsis_os2.h"

#if PW_CXX_STANDARD_IS_SUPPORTED(17) // Requires C++17 for pw::Result
#include "pw_stream/seek.h"
Expand Down Expand Up @@ -132,6 +133,8 @@ class FlashMemory {
return erased_memory_content_;
}

virtual void SetBlockingMode(bool en_blocking, osThreadId_t task_handle) = 0;

private:
const uint32_t sector_size_;
const uint32_t flash_sector_count_;
Expand Down