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