Skip to content

Commit 35a4ba5

Browse files
committed
* Silence bunch of compiler warnings on Silicon Labs platforms
* Remove "ARM" as compiler for Silicon Labs' CM0 platforms * Define LED3 and LED4 on Silicon Labs platforms
1 parent b40c1d4 commit 35a4ba5

File tree

20 files changed

+46
-495
lines changed

20 files changed

+46
-495
lines changed

libraries/mbed/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_STD/startup_efm32gg.s

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,6 @@ EMU_IRQHandler
272272

273273
; User Initial Stack & Heap
274274

275-
IF :DEF:__MICROLIB
276-
277-
EXPORT __initial_sp
278-
EXPORT __heap_base
279-
EXPORT __heap_limit
280-
281-
ELSE
282-
283275
IMPORT __use_two_region_memory
284276
EXPORT __user_initial_stackheap
285277

@@ -293,6 +285,4 @@ __user_initial_stackheap PROC
293285

294286
ALIGN
295287

296-
ENDIF
297-
298288
END

libraries/mbed/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/startup_efm32hg.s

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -195,27 +195,8 @@ TIMER2_IRQHandler
195195

196196
; User Initial Stack & Heap
197197

198-
IF :DEF:__MICROLIB
199-
200198
EXPORT __initial_sp
201199
EXPORT __heap_base
202200
EXPORT __heap_limit
203201

204-
ELSE
205-
206-
IMPORT __use_two_region_memory
207-
EXPORT __user_initial_stackheap
208-
209-
__user_initial_stackheap PROC
210-
LDR R0, = Heap_Mem
211-
LDR R1, =(Stack_Mem + Stack_Size)
212-
LDR R2, = (Heap_Mem + Heap_Size)
213-
LDR R3, = Stack_Mem
214-
BX LR
215-
ENDP
216-
217-
ALIGN
218-
219-
ENDIF
220-
221202
END

libraries/mbed/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_STD/efm32hg.sct

Lines changed: 0 additions & 15 deletions
This file was deleted.

libraries/mbed/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_STD/startup_efm32hg.s

Lines changed: 0 additions & 221 deletions
This file was deleted.

libraries/mbed/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/arm_math.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ extern "C"
485485
#define __CLZ __clz
486486
#endif
487487

488-
#if defined (ARM_MATH_CM0_FAMILY) && ((defined (__ICCARM__)) ||(defined (__GNUC__)) || defined (__TASKING__) )
488+
#if defined (ARM_MATH_CM0_FAMILY) && ((defined (__ICCARM__)) ||(defined (__GNUC__)) || defined (__TASKING__) ) && !defined (__CC_ARM)
489489

490490
static __INLINE uint32_t __CLZ(
491491
q31_t data);

libraries/mbed/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg322f64.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ typedef enum IRQn
224224

225225
/** @} End of group EFM32HG322F64_Part */
226226

227-
#define ARM_MATH_CM0PLUS
228227
#include "arm_math.h" /* To get __CLZ definitions etc. */
229228
#include "core_cm0plus.h" /* Cortex-M0+ processor and core peripherals */
230229
#include "system_efm32hg.h" /* System Header */

libraries/mbed/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_ARM_STD/efm32zg.sct

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)