From 8a0ba8f0c266d4939002cb71e745f84c2b370f41 Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Mon, 20 Jul 2020 04:49:40 -0700 Subject: [PATCH] Refactor storage/system_storage directory --- .../tests/TESTS/blockdevice/general_block_device/README.md | 2 +- storage/{system_storage => platform}/mbed_lib.json | 0 .../SystemStorage.cpp => platform/source/PlatformStorage.cpp} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename storage/{system_storage => platform}/mbed_lib.json (100%) rename storage/{system_storage/SystemStorage.cpp => platform/source/PlatformStorage.cpp} (100%) diff --git a/storage/blockdevice/tests/TESTS/blockdevice/general_block_device/README.md b/storage/blockdevice/tests/TESTS/blockdevice/general_block_device/README.md index 586137f9c0..2b9fc1486c 100644 --- a/storage/blockdevice/tests/TESTS/blockdevice/general_block_device/README.md +++ b/storage/blockdevice/tests/TESTS/blockdevice/general_block_device/README.md @@ -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`. diff --git a/storage/system_storage/mbed_lib.json b/storage/platform/mbed_lib.json similarity index 100% rename from storage/system_storage/mbed_lib.json rename to storage/platform/mbed_lib.json diff --git a/storage/system_storage/SystemStorage.cpp b/storage/platform/source/PlatformStorage.cpp similarity index 100% rename from storage/system_storage/SystemStorage.cpp rename to storage/platform/source/PlatformStorage.cpp