Skip to content

Commit 452c45b

Browse files
paul-szczepanek-armrajkan01
authored andcommitted
CMake: Update target_h stub headers
- Avoid using cmsis headers as it brings more redundant dependency into unittest build and for unittest build, all the required OS flags can provide from mbed rtos types header so replaced cmsis header with mbed os types header
1 parent bf4ec4a commit 452c45b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

UNITTESTS/target_h/cmsis_os.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef CMSIS_OS_H_
1919
#define CMSIS_OS_H_
2020

21-
#include "cmsis_os2.h"
21+
#include "mbed_rtos_types.h"
2222

2323
#define osPriority osPriority_t
2424

UNITTESTS/target_h/rtos/Semaphore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define SEMAPHORE_H
1919

2020
#include <stdint.h>
21-
#include "cmsis_os2.h"
21+
#include "internal/mbed_rtos1_types.h"
2222
#include "rtos/Kernel.h"
2323

2424
namespace rtos {

UNITTESTS/target_h/rtos/include/rtos/internal/mbed_rtos_storage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
extern "C" {
2323
#endif
2424

25-
#include "cmsis_os2.h"
25+
#include "mbed_rtos_types.h"
2626
#include "rtx_os.h"
2727
#include "rtx_lib.h"
2828
#include "mbed_rtx_conf.h"

connectivity/cellular/tests/UNITTESTS/framework/device/cellularstatemachine/cellularstatemachinetest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "AT_CellularNetwork_stub.h"
2424
#include "myCellularDevice.h"
2525
#include "Thread_stub.h"
26-
#include "cmsis_os2.h"
26+
#include "mbed_rtos_types.h"
2727
#include "equeue_stub.h"
2828

2929
using namespace mbed;

0 commit comments

Comments
 (0)