Skip to content

Commit 8dfad16

Browse files
committed
QSPIFBlockDevice: Use fully-qualified include path
In Mbed OS, each library has an `include/<library>/` subdirectory containing headers. The recommended way to include a header is `#include "<library>/<header>.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/<component>/ 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.
1 parent e04a16f commit 8dfad16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717

1818
#include "blockdevice/internal/SFDP.h"
1919
#include "platform/Callback.h"
20-
#include "QSPIFBlockDevice.h"
20+
#include "QSPIF/QSPIFBlockDevice.h"
2121
#include <string.h>
2222
#include "rtos/ThisThread.h"
2323

2424
#ifndef MBED_CONF_MBED_TRACE_ENABLE
2525
#define MBED_CONF_MBED_TRACE_ENABLE 0
2626
#endif
2727

28-
#include "mbed_trace.h"
28+
#include "mbed-trace/mbed_trace.h"
2929
#define TRACE_GROUP "QSPIF"
3030

3131
using namespace std::chrono;

0 commit comments

Comments
 (0)