Skip to content

Commit 301b77c

Browse files
committed
For drivers, events, hal, platform, rtos and mbed.h add one level of path to make sure specific and unique includes files are found.
1 parent b7fcfd9 commit 301b77c

File tree

114 files changed

+336
-552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+336
-552
lines changed

drivers/AnalogIn.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "mbed.h"
18-
19-
#include "AnalogIn.h"
17+
#include "drivers/AnalogIn.h"
2018

2119
#if DEVICE_ANALOGIN
2220

drivers/AnalogIn.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
#ifndef MBED_ANALOGIN_H
1717
#define MBED_ANALOGIN_H
1818

19-
#include "platform.h"
19+
#include "platform/platform.h"
2020

2121
#if DEVICE_ANALOGIN
2222

23-
#include "analogin_api.h"
24-
#include "SingletonPtr.h"
25-
#include "PlatformMutex.h"
23+
#include "hal/analogin_api.h"
24+
#include "platform/SingletonPtr.h"
25+
#include "platform/PlatformMutex.h"
2626

2727
namespace mbed {
2828

drivers/AnalogOut.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
#ifndef MBED_ANALOGOUT_H
1717
#define MBED_ANALOGOUT_H
1818

19-
#include "platform.h"
19+
#include "platform/platform.h"
2020

2121
#if DEVICE_ANALOGOUT
2222

23-
#include "analogout_api.h"
24-
#include "PlatformMutex.h"
23+
#include "hal/analogout_api.h"
24+
#include "platform/PlatformMutex.h"
2525

2626
namespace mbed {
2727

drivers/BusIn.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "BusIn.h"
17-
#include "mbed_assert.h"
16+
#include "drivers/BusIn.h"
17+
#include "platform/mbed_assert.h"
1818

1919
namespace mbed {
2020

drivers/BusIn.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
#ifndef MBED_BUSIN_H
1717
#define MBED_BUSIN_H
1818

19-
#include "platform.h"
20-
#include "DigitalIn.h"
21-
#include "PlatformMutex.h"
19+
#include "platform/platform.h"
20+
#include "drivers/DigitalIn.h"
21+
#include "platform/PlatformMutex.h"
2222

2323
namespace mbed {
2424

drivers/BusInOut.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "BusInOut.h"
17-
#include "mbed_assert.h"
16+
#include "drivers/BusInOut.h"
17+
#include "platform/mbed_assert.h"
1818

1919
namespace mbed {
2020

drivers/BusInOut.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#ifndef MBED_BUSINOUT_H
1717
#define MBED_BUSINOUT_H
1818

19-
#include "DigitalInOut.h"
20-
#include "PlatformMutex.h"
19+
#include "drivers/DigitalInOut.h"
20+
#include "platform/PlatformMutex.h"
2121

2222
namespace mbed {
2323

drivers/BusOut.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "BusOut.h"
17-
#include "mbed_assert.h"
16+
#include "drivers/BusOut.h"
17+
#include "platform/mbed_assert.h"
1818

1919
namespace mbed {
2020

drivers/BusOut.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#ifndef MBED_BUSOUT_H
1717
#define MBED_BUSOUT_H
1818

19-
#include "DigitalOut.h"
20-
#include "PlatformMutex.h"
19+
#include "drivers/DigitalOut.h"
20+
#include "platform/PlatformMutex.h"
2121

2222
namespace mbed {
2323

drivers/CAN.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "CAN.h"
16+
#include "drivers/CAN.h"
1717

1818
#if DEVICE_CAN
1919

drivers/CAN.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@
1616
#ifndef MBED_CAN_H
1717
#define MBED_CAN_H
1818

19-
#include "platform.h"
19+
#include "platform/platform.h"
2020

2121
#if DEVICE_CAN
2222

23-
#include "can_api.h"
24-
#include "can_helper.h"
25-
#include "Callback.h"
26-
#include "PlatformMutex.h"
23+
#include "hal/can_api.h"
24+
#include "platform/Callback.h"
25+
#include "platform/PlatformMutex.h"
2726

2827
namespace mbed {
2928

drivers/CircularBuffer.h

Lines changed: 0 additions & 115 deletions
This file was deleted.

drivers/DigitalIn.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
#ifndef MBED_DIGITALIN_H
1717
#define MBED_DIGITALIN_H
1818

19-
#include "platform.h"
19+
#include "platform/platform.h"
2020

21-
#include "gpio_api.h"
22-
#include "critical.h"
21+
#include "hal/gpio_api.h"
22+
#include "platform/critical.h"
2323

2424
namespace mbed {
2525

drivers/DigitalInOut.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
#ifndef MBED_DIGITALINOUT_H
1717
#define MBED_DIGITALINOUT_H
1818

19-
#include "platform.h"
19+
#include "platform/platform.h"
2020

21-
#include "gpio_api.h"
22-
#include "critical.h"
21+
#include "hal/gpio_api.h"
22+
#include "platform/critical.h"
2323

2424
namespace mbed {
2525

drivers/DigitalOut.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
#ifndef MBED_DIGITALOUT_H
1717
#define MBED_DIGITALOUT_H
1818

19-
#include "platform.h"
20-
#include "gpio_api.h"
21-
#include "critical.h"
19+
#include "platform/platform.h"
20+
#include "hal/gpio_api.h"
21+
#include "platform/critical.h"
2222

2323
namespace mbed {
2424

drivers/Ethernet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "Ethernet.h"
16+
#include "drivers/Ethernet.h"
1717

1818
#if DEVICE_ETHERNET
1919

20-
#include "ethernet_api.h"
20+
#include "hal/ethernet_api.h"
2121

2222
namespace mbed {
2323

drivers/Ethernet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef MBED_ETHERNET_H
1717
#define MBED_ETHERNET_H
1818

19-
#include "platform.h"
19+
#include "platform/platform.h"
2020

2121
#if DEVICE_ETHERNET
2222

drivers/FileBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "FileBase.h"
16+
#include "drivers/FileBase.h"
1717

1818
namespace mbed {
1919

drivers/FileBase.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ typedef long off_t;
4141
# include <sys/syslimits.h>
4242
#endif
4343

44-
#include "platform.h"
45-
#include "SingletonPtr.h"
46-
#include "PlatformMutex.h"
44+
#include "platform/platform.h"
45+
#include "platform/SingletonPtr.h"
46+
#include "platform/PlatformMutex.h"
4747

4848
namespace mbed {
4949

drivers/FileLike.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "FileLike.h"
16+
#include "drivers/FileLike.h"
1717

1818
namespace mbed {
1919

drivers/FileLike.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#ifndef MBED_FILELIKE_H
1717
#define MBED_FILELIKE_H
1818

19-
#include "FileBase.h"
20-
#include "FileHandle.h"
19+
#include "drivers/FileBase.h"
20+
#include "drivers/FileHandle.h"
2121

2222
namespace mbed {
2323

drivers/FilePath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "FilePath.h"
16+
#include "drivers/FilePath.h"
1717

1818
namespace mbed {
1919

drivers/FilePath.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
#ifndef MBED_FILEPATH_H
1717
#define MBED_FILEPATH_H
1818

19-
#include "platform.h"
19+
#include "platform/platform.h"
2020

21-
#include "FileSystemLike.h"
22-
#include "FileLike.h"
21+
#include "drivers/FileSystemLike.h"
22+
#include "drivers/FileLike.h"
2323

2424
namespace mbed {
2525

drivers/FileSystemLike.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "FileSystemLike.h"
16+
#include "drivers/FileSystemLike.h"
1717

1818
namespace mbed {
1919

0 commit comments

Comments
 (0)