Skip to content

Commit 02b0f79

Browse files
author
Antti Kauppila
committed
mbed.h includes removed
1 parent 51143ea commit 02b0f79

File tree

19 files changed

+25
-24
lines changed

19 files changed

+25
-24
lines changed

components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "FlashIAPBlockDevice.h"
2020
#include "mbed_critical.h"
2121

22-
#include "mbed.h"
2322
using namespace mbed;
2423
#include <inttypes.h>
2524

features/FEATURE_BLE/ble/services/EddystoneConfigService.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
#warning ble/services/EddystoneConfigService.h is deprecated. Please use the example in 'github.com/ARMmbed/ble-examples/tree/master/BLE_EddystoneService'.
2121

22-
#include "mbed.h"
2322
#include "ble/BLE.h"
2423
#include "ble/services/EddystoneService.h"
2524

features/FEATURE_BLE/ble/services/EddystoneService.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#warning ble/services/EddystoneService.h is deprecated. Please use the example in 'github.com/ARMmbed/ble-examples/tree/master/BLE_EddystoneService'.
2121

2222
#include "ble/BLE.h"
23-
#include "mbed.h"
2423
#include "CircularBuffer.h"
2524
static const uint8_t BEACON_EDDYSTONE[] = {0xAA, 0xFE};
2625

features/FEATURE_BLE/ble/services/UARTService.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "mbed-drivers/mbed.h"
2222
#include "mbed-drivers/Stream.h"
2323
#else
24-
#include "mbed.h"
2524
#include "Stream.h"
2625
#endif
2726

features/FEATURE_BLE/ble/services/URIBeaconConfigService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#ifdef YOTTA_CFG_MBED_OS
2323
#include "mbed-drivers/mbed.h"
2424
#else
25-
#include "mbed.h"
25+
2626
#endif
2727

2828
extern const uint8_t UUID_URI_BEACON_SERVICE[UUID::LENGTH_OF_LONG_UUID];

features/nanostack/mbed-mesh-api/mbed-mesh-api/MeshInterfaceNanostack.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#ifndef MESHINTERFACENANOSTACK_H
1818
#define MESHINTERFACENANOSTACK_H
19-
#include "mbed.h"
2019

2120
#include "MeshInterface.h"
2221
#include "NanostackRfPhy.h"

features/nanostack/mbed-mesh-api/source/MeshInterfaceNanostack.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "nanostack/net_interface.h"
2222
#include "thread_management_if.h"
2323
#include "ip6string.h"
24+
#include "mbed_error.h"
2425

2526
char *Nanostack::Interface::get_ip_address(char *buf, nsapi_size_t buflen)
2627
{

features/nanostack/mbed-mesh-api/source/NanostackEMACInterface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "arm_hal_phy.h"
99
#include "EMAC.h"
1010
#include "enet_tasklet.h"
11+
#include "mbed_interface.h"
1112

1213
class EMACPhy : public NanostackEthernetPhy {
1314
public:

features/nanostack/mbed-mesh-api/source/WisunInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Nanostack::WisunInterface *WisunInterface::get_interface() const
5050
nsapi_error_t WisunInterface::do_initialize()
5151
{
5252
if (!_interface) {
53-
_interface = new (nothrow) Nanostack::WisunInterface(*_phy);
53+
_interface = new (std::nothrow) Nanostack::WisunInterface(*_phy);
5454
if (!_interface) {
5555
return NSAPI_ERROR_NO_MEMORY;
5656
}

features/nanostack/mbed-mesh-api/source/include/callback_handler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#ifndef __INCLUDE_CALLBACK_HANDLER_H__
1818
#define __INCLUDE_CALLBACK_HANDLER_H__
1919

20-
#include "mbed.h"
2120
#include "mesh_interface_types.h"
2221

2322
#ifdef __cplusplus

0 commit comments

Comments
 (0)