From 8dfad16f5defc5985ffd6c92ece4de90f839cf4c Mon Sep 17 00:00:00 2001 From: Lingkai Dong Date: Wed, 11 Aug 2021 15:19:28 +0100 Subject: [PATCH] QSPIFBlockDevice: Use fully-qualified include path In Mbed OS, each library has an `include//` subdirectory containing headers. The recommended way to include a header is `#include "/
.h"` to avoid potential conflicts with any external modules that have same names of headers. This is not enforced yet, and both include/ and include// are in a library's include paths, to avoid breaking preexisting Mbed projects that don't follow the recommendation. But code within Mbed OS should follow it at least. --- .../blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp b/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp index d8d1422402..05c9f2babd 100644 --- a/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp +++ b/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp @@ -17,7 +17,7 @@ #include "blockdevice/internal/SFDP.h" #include "platform/Callback.h" -#include "QSPIFBlockDevice.h" +#include "QSPIF/QSPIFBlockDevice.h" #include #include "rtos/ThisThread.h" @@ -25,7 +25,7 @@ #define MBED_CONF_MBED_TRACE_ENABLE 0 #endif -#include "mbed_trace.h" +#include "mbed-trace/mbed_trace.h" #define TRACE_GROUP "QSPIF" using namespace std::chrono;