Skip to content

Commit 89d9642

Browse files
committed
cmsis: patch rtx_def because of our deps
rtx_def.h is included in assembly files. As it pulls in the RTE components headers, this is causing lot of assembly errros coming from C/C++ headers. Similar to our previous patch for older CMSIS versions: 7149ffe We will review how RTE_Components are used and this is valid, I haven't found any docs mentioning it should be valid for assembly files.
1 parent 551bceb commit 89d9642

File tree

1 file changed

+5
-3
lines changed
  • cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Include

1 file changed

+5
-3
lines changed

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Include/rtx_def.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
#ifndef RTX_DEF_H_
1515
#define RTX_DEF_H_
1616

17-
#ifdef _RTE_
18-
#include "RTE_Components.h"
19-
#endif
17+
// Mbed OS - this is intentionally commented out due to C/C++ headers being pulled it
18+
// This header is included in assembly files
19+
//#ifdef _RTE_
20+
//#include "RTE_Components.h"
21+
//#endif
2022
#include "RTX_Config.h"
2123

2224
#if (defined(OS_OBJ_MEM_USAGE) && (OS_OBJ_MEM_USAGE != 0))

0 commit comments

Comments
 (0)