Merge pull request #13314 from rajkan01/storage_sys_dir_restructure

Storage `system_storage` directory restructure
pull/13377/head
Martin Kojtal 2020-07-27 10:26:52 +01:00 committed by GitHub
commit 315b6bd632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 5 deletions

View File

@ -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
)

View File

@ -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`.