Skip to content

Commit 1fe6337

Browse files
author
Deepika
committed
Framework: Add required header file and namespace element instead add all
1 parent a6651b8 commit 1fe6337

File tree

6 files changed

+4
-7
lines changed

6 files changed

+4
-7
lines changed

features/frameworks/greentea-client/source/greentea_metrics.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "mbed.h"
19-
#include "rtos.h"
2018
#include "mbed_stats.h"
2119
#include "cmsis_os2.h"
2220
#include "greentea-client/test_env.h"

features/frameworks/greentea-client/source/greentea_test_env.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <ctype.h>
1919
#include <cstdio>
2020
#include <string.h>
21-
#include "mbed.h"
2221
#include "greentea-client/test_env.h"
2322
#include "greentea-client/greentea_serial.h"
2423
#include "greentea-client/greentea_metrics.h"

features/frameworks/utest/mbed-utest-shim.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "mbed.h"
1918
#include "mbed_critical.h"
2019
#include "utest/utest.h"
2120

features/frameworks/utest/source/utest_shim.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ utest_v1_scheduler_t utest_v1_get_scheduler()
5858
#ifdef YOTTA_MBED_HAL_VERSION_STRING
5959
# include "mbed-hal/us_ticker_api.h"
6060
#else
61-
# include "mbed.h"
61+
#include "platform/SingletonPtr.h"
62+
#include "Timeout.h"
63+
using mbed::Timeout;
6264
#endif
6365

6466
// only one callback is active at any given time

features/frameworks/utest/source/utest_stack_trace.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#ifdef UTEST_STACK_TRACE
1818

1919
#include "greentea-client/test_env.h"
20-
#include "mbed.h"
2120
#include "utest/utest.h"
2221
#include "unity/unity.h"
2322
#include "utest/utest_stack_trace.h"

features/frameworks/utest/utest/utest_scheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#ifndef UTEST_SCHEDULER_H
2323
#define UTEST_SCHEDULER_H
2424

25-
#include "mbed.h"
25+
#include "hal/ticker_api.h"
2626
#include <stdint.h>
2727
#include <stdbool.h>
2828
#include <stdio.h>

0 commit comments

Comments
 (0)