diff options
author | Isabella Gottardi <isabella.gottardi@arm.com> | 2021-07-21 10:35:08 +0100 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2021-08-13 12:55:24 +0100 |
commit | c5d8bda3c6f743ec2725bf281874d4b6431122c3 (patch) | |
tree | 33b20cfc9c9dcbbd2e424c81b59eefd07de4db6c /source/application/hal/platforms/bare-metal/bsp/bsp-packs | |
parent | 0d110594b8a50ce3311be5187f01de2e3b8fe995 (diff) | |
download | ml-embedded-evaluation-kit-c5d8bda3c6f743ec2725bf281874d4b6431122c3.tar.gz |
MLECO-1982: Update to using latest ethos-u embedded components
Change-Id: I744a4eb2553207004c9403b956e5bd9e9b352bfb
Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
Diffstat (limited to 'source/application/hal/platforms/bare-metal/bsp/bsp-packs')
-rw-r--r-- | source/application/hal/platforms/bare-metal/bsp/bsp-packs/mps3/uart_stdout.c | 4 | ||||
-rw-r--r-- | source/application/hal/platforms/bare-metal/bsp/bsp-packs/simple_platform/uart_pl011.c | 8 |
2 files changed, 10 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 ed12c8b..3211c4d 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 @@ -111,6 +111,10 @@ bool GetLine(char *lp, unsigned int len) lp++; /* Increment line pointer */ cnt++; /* and count. */ c = LF; + UartPutc (*lp = c); /* Echo and store character. */ + fflush (stdout); + lp++; /* Increment line pointer */ + cnt++; /* and count. */ break; default: UartPutc (*lp = c); /* Echo and store character. */ diff --git a/source/application/hal/platforms/bare-metal/bsp/bsp-packs/simple_platform/uart_pl011.c b/source/application/hal/platforms/bare-metal/bsp/bsp-packs/simple_platform/uart_pl011.c index b2dee14..1cbf70c 100644 --- a/source/application/hal/platforms/bare-metal/bsp/bsp-packs/simple_platform/uart_pl011.c +++ b/source/application/hal/platforms/bare-metal/bsp/bsp-packs/simple_platform/uart_pl011.c @@ -199,11 +199,15 @@ bool GetLine (char *lp, unsigned int len) case 0: *lp = 0; /* ESC - stop editing line. */ return false; - case CR: /* CR - done, stop editing line. */ + case CR: /* CR - done, stop editing line. */ + UartPutc (*lp = c); /* Echo and store character. */ + lp++; /* Increment line pointer */ + cnt++; /* and count. */ + c = LF; UartPutc (*lp = c); /* Echo and store character. */ + fflush (stdout); lp++; /* Increment line pointer */ cnt++; /* and count. */ - c = LF; break; default: UartPutc (*lp = c); /* echo and store character. */ |