Skip to content

Commit

Permalink
Merge pull request #13314 from rajkan01/storage_sys_dir_restructure
Browse files Browse the repository at this point in the history
Storage `system_storage` directory restructure
  • Loading branch information
0xc0170 authored Jul 27, 2020
2 parents f5358a7 + 59072e9 commit 315b6bd
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions UNITTESTS/empty_baseline/unittest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ set(unittest-includes ${unittest-includes}
../features/frameworks/mbed-trace/mbed-trace/
)

set(unittest-sources
../storage/system_storage/SystemStorage.cpp
)

set(unittest-test-sources
empty_baseline/empty_baseline.cpp
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Please review the [documentation](https://os.mbed.com/docs/latest/tutorials/debu

In Mbed OS, a C++ class that inherits from the [BlockDevice](https://os.mbed.com/docs/latest/reference/storage.html#block-devices) interface represents each block device.

This test uses the default block device that the function `get_default_instance()` receives. [SystemStorage.cpp](https://github.com/ARMmbed/mbed-os/blob/master/storage/system_storage/SystemStorage.cpp#L35-L77) defines this as `MBED_WEAK`. If you would like to test a new block device, you have to override it.
This test uses the default block device that the function `get_default_instance()` receives. [PlatformStorage.cpp](https://github.com/ARMmbed/mbed-os/blob/master/storage/platform/source/PlatformStorage.cpp#L35-L77) defines this as `MBED_WEAK`. If you would like to test a new block device, you have to override it.

First add the new block device .cpp and header files to the [blockdevice folder](https://github.com/ARMmbed/mbed-os/tree/master/storage/blockdevice). Then, implement `get_default_instance()` inside the test `main.cpp`.

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 315b6bd

Please sign in to comment.