Skip to content

Commit 894b0df

Browse files
committed
Revert "Platform: Add required header file and namespace element instead add all"
This reverts commit d7795e8. Going to 5.11
1 parent 7a0911f commit 894b0df

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

platform/ATCmdParser.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
#define CR 13
4040
#endif
4141

42-
namespace mbed {
43-
4442
// getc/putc handling with timeouts
4543
int ATCmdParser::putc(char c)
4644
{
@@ -400,5 +398,4 @@ bool ATCmdParser::process_oob()
400398
return _oob_cb_count != pre_count;
401399
}
402400

403-
}
404401

platform/ATCmdParser.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
#ifndef MBED_ATCMDPARSER_H
2121
#define MBED_ATCMDPARSER_H
2222

23+
#include "mbed.h"
2324
#include <cstdarg>
2425
#include "Callback.h"
25-
#include "NonCopyable.h"
26-
#include "FileHandle.h"
2726

2827
namespace mbed {
2928

platform/FileSystemHandle.cpp

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

17+
#include "mbed.h"
1718
#include "FileSystemHandle.h"
1819
#include <errno.h>
1920

20-
namespace mbed {
2121
int FileSystemHandle::open(DirHandle **dir, const char *path)
2222
{
2323
return -ENOSYS;
@@ -47,4 +47,3 @@ int FileSystemHandle::statvfs(const char *path, struct statvfs *buf)
4747
{
4848
return -ENOSYS;
4949
}
50-
}

platform/mbed_wait_api_rtos.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include "platform/mbed_wait_api.h"
2222
#include "hal/us_ticker_api.h"
23-
#include "rtos/ThisThread.h"
23+
#include "rtos/rtos.h"
2424
#include "platform/mbed_critical.h"
2525
#include "platform/mbed_power_mgmt.h"
2626

0 commit comments

Comments
 (0)