mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13314 from rajkan01/storage_sys_dir_restructure
Storage `system_storage` directory restructurepull/13377/head
commit
315b6bd632
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue