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/bsp-packs/mps3/uart_stdout.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/bsp-packs/mps3/uart_stdout.c')
-rw-r--r-- | source/application/hal/platforms/bare-metal/bsp/bsp-packs/mps3/uart_stdout.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/application/hal/platforms/bare-metal/bsp/bsp-packs/mps3/uart_stdout.c b/source/application/hal/platforms/bare-metal/bsp/bsp-packs/mps3/uart_stdout.c index 1bf8291..ed12c8b 100644 --- a/source/application/hal/platforms/bare-metal/bsp/bsp-packs/mps3/uart_stdout.c +++ b/source/application/hal/platforms/bare-metal/bsp/bsp-packs/mps3/uart_stdout.c @@ -107,10 +107,11 @@ bool GetLine(char *lp, unsigned int len) return false; case CR: /* CR - done, stop editing line. */ - *lp = c; + UartPutc (*lp = c); /* Echo and store character. */ lp++; /* Increment line pointer */ cnt++; /* and count. */ c = LF; + break; default: UartPutc (*lp = c); /* Echo and store character. */ fflush (stdout); @@ -124,7 +125,7 @@ bool GetLine(char *lp, unsigned int len) return true; } -void UartEndSimulation(int code) +__attribute__((noreturn)) void UartEndSimulation(int code) { UartPutc((char) 0x4); /* End of simulation */ UartPutc((char) code); /* End of simulation */ |