Skip to content

Commit 77f8a30

Browse files
committed
cmsis: fix iar asm build error with including header
mbed-cli1 does not pass -I to IAR for iarasm (comparing to other toolchains). Because old tools are frozen, we implement this workaround for fixing the build. We use preprocessor macros that are passed to .S files anyway, so we do not loose anything but we do diverge again from CMSIS, for now..
1 parent 3377f08 commit 77f8a30

File tree

6 files changed

+1
-6
lines changed

6 files changed

+1
-6
lines changed

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M0/irq_cm0.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
NAME irq_armv6m.s
2828

2929

30-
#include "rtx_def.h"
3130

3231
I_T_RUN_OFS EQU 20 ; osRtxInfo.thread.run offset
3332
TCB_SP_OFS EQU 56 ; TCB.SP offset

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M0P/irq_cm0.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
NAME irq_armv6m.s
2828

2929

30-
#include "rtx_def.h"
3130

3231
I_T_RUN_OFS EQU 20 ; osRtxInfo.thread.run offset
3332
TCB_SP_OFS EQU 56 ; TCB.SP offset

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M23/irq_armv8mbl_common.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
NAME irq_armv8mbl.s
2828

2929

30-
#include "rtx_def.h"
3130

3231
#ifndef DOMAIN_NS
3332
#define DOMAIN_NS 0

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M3/irq_cm3.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
NAME irq_armv7m.s
2828

2929

30-
#include "rtx_def.h"
3130

3231
#ifdef __ARMVFP__
3332
FPU_USED EQU 1

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M33/irq_armv8mml_common.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
NAME irq_armv8mml.s
2828

2929

30-
#include "rtx_def.h"
3130

3231
#ifndef DOMAIN_NS
3332
#define DOMAIN_NS 0

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/irq_cm4f.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
NAME irq_armv7m.s
2828

2929

30-
#include "rtx_def.h"
30+
3131

3232
#ifdef __ARMVFP__
3333
FPU_USED EQU 1

0 commit comments

Comments
 (0)