Merge pull request #13917 from LDong-Arm/move_SFDP

Move SFDP to blockdevice
pull/14027/head
Martin Kojtal 2020-12-10 13:03:23 +00:00 committed by GitHub
commit be295e42a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 12 additions and 11 deletions

View File

@ -12,7 +12,6 @@ target_include_directories(mbed-device_key
target_sources(mbed-device_key target_sources(mbed-device_key
INTERFACE INTERFACE
source/DeviceKey.cpp source/DeviceKey.cpp
../source/SFDP.cpp
) )
target_link_libraries(mbed-device_key target_link_libraries(mbed-device_key

View File

@ -31,6 +31,7 @@ target_include_directories(mbed-storage-blockdevice
. .
./include ./include
./include/blockdevice ./include/blockdevice
./include/blockdevice/internal
) )
target_sources(mbed-storage-blockdevice target_sources(mbed-storage-blockdevice
@ -44,5 +45,6 @@ target_sources(mbed-storage-blockdevice
source/ObservingBlockDevice.cpp source/ObservingBlockDevice.cpp
source/ProfilingBlockDevice.cpp source/ProfilingBlockDevice.cpp
source/ReadOnlyBlockDevice.cpp source/ReadOnlyBlockDevice.cpp
source/SFDP.cpp
source/SlicingBlockDevice.cpp source/SlicingBlockDevice.cpp
) )

View File

@ -18,7 +18,7 @@
#define MBED_OSPIF_BLOCK_DEVICE_H #define MBED_OSPIF_BLOCK_DEVICE_H
#include "drivers/OSPI.h" #include "drivers/OSPI.h"
#include "drivers/internal/SFDP.h" #include "blockdevice/internal/SFDP.h"
#include "blockdevice/BlockDevice.h" #include "blockdevice/BlockDevice.h"
#include "platform/Callback.h" #include "platform/Callback.h"

View File

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include "drivers/internal/SFDP.h" #include "blockdevice/internal/SFDP.h"
#include "platform/Callback.h" #include "platform/Callback.h"
#include "OSPIFBlockDevice.h" #include "OSPIFBlockDevice.h"
#include <string.h> #include <string.h>

View File

@ -18,7 +18,7 @@
#define MBED_QSPIF_BLOCK_DEVICE_H #define MBED_QSPIF_BLOCK_DEVICE_H
#include "drivers/QSPI.h" #include "drivers/QSPI.h"
#include "drivers/internal/SFDP.h" #include "blockdevice/internal/SFDP.h"
#include "blockdevice/BlockDevice.h" #include "blockdevice/BlockDevice.h"
#include "platform/Callback.h" #include "platform/Callback.h"

View File

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include "drivers/internal/SFDP.h" #include "blockdevice/internal/SFDP.h"
#include "platform/Callback.h" #include "platform/Callback.h"
#include "QSPIFBlockDevice.h" #include "QSPIFBlockDevice.h"
#include <string.h> #include <string.h>

View File

@ -20,7 +20,7 @@
#include "platform/SingletonPtr.h" #include "platform/SingletonPtr.h"
#include "drivers/SPI.h" #include "drivers/SPI.h"
#include "drivers/DigitalOut.h" #include "drivers/DigitalOut.h"
#include "drivers/internal/SFDP.h" #include "blockdevice/internal/SFDP.h"
#include "blockdevice/BlockDevice.h" #include "blockdevice/BlockDevice.h"
#ifndef MBED_CONF_SPIF_DRIVER_SPI_MOSI #ifndef MBED_CONF_SPIF_DRIVER_SPI_MOSI

View File

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include "drivers/internal/SFDP.h" #include "blockdevice/internal/SFDP.h"
#include "SPIFBlockDevice.h" #include "SPIFBlockDevice.h"
#include "rtos/ThisThread.h" #include "rtos/ThisThread.h"
#include "mbed_critical.h" #include "mbed_critical.h"

View File

@ -22,7 +22,7 @@
#include <string.h> #include <string.h>
#include "platform/mbed_error.h" #include "platform/mbed_error.h"
#include "drivers/internal/SFDP.h" #include "blockdevice/internal/SFDP.h"
#if (DEVICE_SPI || DEVICE_QSPI || DEVICE_OSPI) #if (DEVICE_SPI || DEVICE_QSPI || DEVICE_OSPI)

View File

@ -16,7 +16,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "drivers/internal/SFDP.h" #include "blockdevice/internal/SFDP.h"
class TestSFDP : public testing::Test { class TestSFDP : public testing::Test {
protected: protected:

View File

@ -6,12 +6,12 @@ set(TEST_SUITE_NAME "SFDP")
# Source files # Source files
set(unittest-sources set(unittest-sources
../drivers/source/SFDP.cpp ../storage/blockdevice/source/SFDP.cpp
) )
# Test files # Test files
set(unittest-test-sources set(unittest-test-sources
../drivers/tests/UNITTESTS/SFDP/test_sfdp.cpp ../storage/blockdevice/tests/UNITTESTS/SFDP/test_sfdp.cpp
stubs/mbed_assert_stub.cpp stubs/mbed_assert_stub.cpp
) )