diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2021-05-07 16:08:14 +0100 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2021-05-07 17:28:51 +0100 |
commit | f9c19eaa9ab11e4409679fc6d2862c89410493a7 (patch) | |
tree | b791a4c03f1fe986a2ac32593a3dc817ae3f247a /source/application/hal/platforms/bare-metal/bsp/cmsis-device/cmsis.c | |
parent | 2181d0ac35f30202985a877950c88325ff665f6b (diff) | |
download | ml-embedded-evaluation-kit-f9c19eaa9ab11e4409679fc6d2862c89410493a7.tar.gz |
MLECO-1860: Support for Arm GNU Embedded Toolchain
This patch enables compilation of ML use cases bare-metal applications
using Arm GNU Embedded Toolchain. The GNU toolchain can be used instead
of the Arm Compiler that was already supported.
The GNU toolchain is also set as the default toolchain when building
applications for the MPS3 target.
Note: The version of GNU toolchain must be 10.2.1 or higher.
Change-Id: I5fff242f0f52d2db6c75d292f9fa990df1aec978
Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
Diffstat (limited to 'source/application/hal/platforms/bare-metal/bsp/cmsis-device/cmsis.c')
-rw-r--r-- | source/application/hal/platforms/bare-metal/bsp/cmsis-device/cmsis.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source/application/hal/platforms/bare-metal/bsp/cmsis-device/cmsis.c b/source/application/hal/platforms/bare-metal/bsp/cmsis-device/cmsis.c index c9cf53d..b7f318c 100644 --- a/source/application/hal/platforms/bare-metal/bsp/cmsis-device/cmsis.c +++ b/source/application/hal/platforms/bare-metal/bsp/cmsis-device/cmsis.c @@ -24,9 +24,6 @@ extern void *__Vectors; /* see irqs.c */ #define __XTAL (25000000) /* Oscillator frequency */ #define __SYSTEM_CLOCK (__XTAL) -#define STR(x) #x -#define RESET_REG(n) __ASM volatile("MOV " STR(r##n) ", #0" : : : STR(r##n)) - #if defined(CPU_CORTEX_M55) #define CCR_DL (1 << 19) #else @@ -69,25 +66,6 @@ void SystemInit(void) (3U << 11U*2U) ); #endif - /* Initialise registers r0-r12 and LR(=r14) - * They must have a valid value before being potentially pushed to stack by - * C calling convention or by context saving in exception handling - */ - RESET_REG(0); - RESET_REG(1); - RESET_REG(2); - RESET_REG(3); - RESET_REG(4); - RESET_REG(5); - RESET_REG(6); - RESET_REG(7); - RESET_REG(8); - RESET_REG(9); - RESET_REG(10); - RESET_REG(11); - RESET_REG(12); - RESET_REG(14); - #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) SCB->VTOR = (uint32_t) &__Vectors; #endif |