summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-08-15 10:38:16 -0400
committerguo <[email protected]>2022-08-16 09:37:45 +0800
commitc038e55d32362d52ffb35e20d4b05c445c35f3ce (patch)
treea04078b1989dcb634d98d56c31376e3a8ee47470
parentbd33d37bc49d549357d987ab34aadfd0159b411e (diff)
[armclang] 使用__clang__代替__CLANG_ARM
attach https://github.com/RT-Thread/rt-thread/pull/5451
-rw-r--r--bsp/Vango/v85xxp/drivers/board.h2
-rw-r--r--bsp/imxrt/imxrt1021-nxp-evk/board/board.h2
-rw-r--r--bsp/microchip/samc21/board/board.c2
-rw-r--r--bsp/microchip/samc21/board/board.h2
-rw-r--r--bsp/microchip/same54/board/board.c2
-rw-r--r--bsp/microchip/same54/board/board.h2
-rw-r--r--bsp/microchip/same70/board/board.c2
-rw-r--r--bsp/microchip/same70/board/board.h2
-rw-r--r--bsp/microchip/saml10/board/board.c2
-rw-r--r--bsp/microchip/saml10/board/board.h2
-rw-r--r--bsp/wch/arm/ch579m/board/board.h2
11 files changed, 11 insertions, 11 deletions
diff --git a/bsp/Vango/v85xxp/drivers/board.h b/bsp/Vango/v85xxp/drivers/board.h
index 00e546049e..e7263e4d35 100644
--- a/bsp/Vango/v85xxp/drivers/board.h
+++ b/bsp/Vango/v85xxp/drivers/board.h
@@ -19,7 +19,7 @@
#define V85XX_SRAM_END (0x20000000 + V85XX_SRAM_SIZE * 1024)
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#if defined(__ARMCC_VERSION)
extern int Image$$RW_IRAM1$$ZI$$Limit;
#define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
diff --git a/bsp/imxrt/imxrt1021-nxp-evk/board/board.h b/bsp/imxrt/imxrt1021-nxp-evk/board/board.h
index 8cbebccbf8..49aa4f17b8 100644
--- a/bsp/imxrt/imxrt1021-nxp-evk/board/board.h
+++ b/bsp/imxrt/imxrt1021-nxp-evk/board/board.h
@@ -15,7 +15,7 @@
#include "fsl_common.h"
#include "clock_config.h"
#define SOC_IMXRT1020_SERIES
-#if defined(__CC_ARM) || defined (__CLANG_ARM) || defined (__CLANG_ARM)
+#if defined(__ARMCC_VERSION)
extern int Image$$RTT_HEAP$$ZI$$Base;
extern int Image$$RTT_HEAP$$ZI$$Limit;
#define HEAP_BEGIN (&Image$$RTT_HEAP$$ZI$$Base)
diff --git a/bsp/microchip/samc21/board/board.c b/bsp/microchip/samc21/board/board.c
index cc49de728e..e16a5357da 100644
--- a/bsp/microchip/samc21/board/board.c
+++ b/bsp/microchip/samc21/board/board.c
@@ -73,7 +73,7 @@ void rt_hw_board_init(void)
NVIC_SetPriority(PendSV_IRQn, (1 << __NVIC_PRIO_BITS) - 1);
#ifdef RT_USING_HEAP
- #if defined(__CC_ARM) || defined(__CLANG_ARM)
+ #if defined(__ARMCC_VERSION)
rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)HEAP_END);
#elif __ICCARM__
rt_system_heap_init((void*)HEAP_BEGIN, (void*)HEAP_END);
diff --git a/bsp/microchip/samc21/board/board.h b/bsp/microchip/samc21/board/board.h
index 6de1e3f6e1..5451d04296 100644
--- a/bsp/microchip/samc21/board/board.h
+++ b/bsp/microchip/samc21/board/board.h
@@ -46,7 +46,7 @@
#define SAMC21_SRAM_END (0x20000000 + SAMC21_SRAM_SIZE * 1024)
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#if defined(__ARMCC_VERSION)
extern int Image$$RW_IRAM1$$ZI$$Limit;
#define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
diff --git a/bsp/microchip/same54/board/board.c b/bsp/microchip/same54/board/board.c
index bd620e6e31..4144d0255f 100644
--- a/bsp/microchip/same54/board/board.c
+++ b/bsp/microchip/same54/board/board.c
@@ -75,7 +75,7 @@ void rt_hw_board_init(void)
NVIC_SetPriority(PendSV_IRQn, (1 << __NVIC_PRIO_BITS) - 1);
#ifdef RT_USING_HEAP
- #if defined(__CC_ARM) || defined(__CLANG_ARM)
+ #if defined(__ARMCC_VERSION)
rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)HEAP_END);
#elif __ICCARM__
rt_system_heap_init((void*)HEAP_BEGIN, (void*)HEAP_END);
diff --git a/bsp/microchip/same54/board/board.h b/bsp/microchip/same54/board/board.h
index e0bf12cb83..fd504669b0 100644
--- a/bsp/microchip/same54/board/board.h
+++ b/bsp/microchip/same54/board/board.h
@@ -60,7 +60,7 @@
#define SAME5x_SRAM_END (0x20000000 + SAME5x_SRAM_SIZE * 1024)
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#if defined(__ARMCC_VERSION)
extern int Image$$RW_IRAM1$$ZI$$Limit;
#define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
diff --git a/bsp/microchip/same70/board/board.c b/bsp/microchip/same70/board/board.c
index 00f9874edb..4cb47179ba 100644
--- a/bsp/microchip/same70/board/board.c
+++ b/bsp/microchip/same70/board/board.c
@@ -78,7 +78,7 @@ void rt_hw_board_init(void)
NVIC_SetPriority(PendSV_IRQn, (1 << __NVIC_PRIO_BITS) - 1);
#ifdef RT_USING_HEAP
- #if defined(__CC_ARM) || defined(__CLANG_ARM)
+ #if defined(__ARMCC_VERSION)
rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)HEAP_END);
#elif __ICCARM__
rt_system_heap_init((void*)HEAP_BEGIN, (void*)HEAP_END);
diff --git a/bsp/microchip/same70/board/board.h b/bsp/microchip/same70/board/board.h
index 2f5027c041..0b32541180 100644
--- a/bsp/microchip/same70/board/board.h
+++ b/bsp/microchip/same70/board/board.h
@@ -92,7 +92,7 @@
#define SAME70_SRAM_END (0x20400000 + SAME70_SRAM_SIZE * 1024)
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#if defined(__ARMCC_VERSION)
extern int Image$$RW_IRAM1$$ZI$$Limit;
#define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
diff --git a/bsp/microchip/saml10/board/board.c b/bsp/microchip/saml10/board/board.c
index cc49de728e..e16a5357da 100644
--- a/bsp/microchip/saml10/board/board.c
+++ b/bsp/microchip/saml10/board/board.c
@@ -73,7 +73,7 @@ void rt_hw_board_init(void)
NVIC_SetPriority(PendSV_IRQn, (1 << __NVIC_PRIO_BITS) - 1);
#ifdef RT_USING_HEAP
- #if defined(__CC_ARM) || defined(__CLANG_ARM)
+ #if defined(__ARMCC_VERSION)
rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)HEAP_END);
#elif __ICCARM__
rt_system_heap_init((void*)HEAP_BEGIN, (void*)HEAP_END);
diff --git a/bsp/microchip/saml10/board/board.h b/bsp/microchip/saml10/board/board.h
index fbf8042cd9..a0454e18b5 100644
--- a/bsp/microchip/saml10/board/board.h
+++ b/bsp/microchip/saml10/board/board.h
@@ -30,7 +30,7 @@
#define SAML10_SRAM_END (0x20000000 + SAML10_SRAM_SIZE * 1024)
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#if defined(__ARMCC_VERSION)
extern int Image$$RW_IRAM1$$ZI$$Limit;
#define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
diff --git a/bsp/wch/arm/ch579m/board/board.h b/bsp/wch/arm/ch579m/board/board.h
index 81a720aa27..ded82fa227 100644
--- a/bsp/wch/arm/ch579m/board/board.h
+++ b/bsp/wch/arm/ch579m/board/board.h
@@ -21,7 +21,7 @@
#define CH579M_SRAM_SIZE 32
#define CH579M_SRAM_END (0x20000000 + CH579M_SRAM_SIZE * 1024)
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#if defined(__ARMCC_VERSION)
extern int Image$$RW_IRAM1$$ZI$$Limit;
#define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__