summaryrefslogtreecommitdiff
path: root/bsp/microchip
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 /bsp/microchip
parentbd33d37bc49d549357d987ab34aadfd0159b411e (diff)
[armclang] 使用__clang__代替__CLANG_ARM
attach https://github.com/RT-Thread/rt-thread/pull/5451
Diffstat (limited to 'bsp/microchip')
-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
8 files changed, 8 insertions, 8 deletions
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__