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