Skip to content

Commit 1d23843

Browse files
author
Deepika
committed
Platform: Add required header file and namespace element instead add all
1 parent f55b929 commit 1d23843

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

platform/ATCmdParser.cpp

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

42+
namespace mbed {
43+
4244
// getc/putc handling with timeouts
4345
int ATCmdParser::putc(char c)
4446
{
@@ -434,4 +436,5 @@ bool ATCmdParser::process_oob()
434436
}
435437
}
436438

439+
}
437440

platform/ATCmdParser.h

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

23-
#include "mbed.h"
2423
#include <cstdarg>
2524
#include "Callback.h"
25+
#include "NonCopyable.h"
26+
#include "FileHandle.h"
2627

2728
namespace mbed {
2829

platform/FileSystemHandle.cpp

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

17-
#include "mbed.h"
1817
#include "FileSystemHandle.h"
1918
#include <errno.h>
2019

20+
namespace mbed {
2121
int FileSystemHandle::open(DirHandle **dir, const char *path)
2222
{
2323
return -ENOSYS;
@@ -47,3 +47,4 @@ 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/rtos.h"
23+
#include "rtos/ThisThread.h"
2424
#include "platform/mbed_critical.h"
2525
#include "platform/mbed_power_mgmt.h"
2626

0 commit comments

Comments
 (0)