Git
Wiki
Site
projects
/
soft
/
lpc82x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5e3a4b
)
Echo on serial must be only a "best effort" and not mangle with ongoing transmissions
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Thu, 15 Jun 2017 07:00:40 +0000
(09:00 +0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Fri, 10 Feb 2023 18:02:59 +0000
(19:02 +0100)
drivers/serial.c
patch
|
blob
|
history
diff --git
a/drivers/serial.c
b/drivers/serial.c
index
47dd72c
..
f5e561d
100644
(file)
--- a/
drivers/serial.c
+++ b/
drivers/serial.c
@@
-105,8
+105,10
@@
static void uart_check_rx(struct uart_device* uart, uint32_t intr)
/* Call the Rx callback */
uart->rx_callback(data);
} else {
- /* Echo */
- uart->regs->tx_data = data;
+ /* Echo ? */
+ if (!uart->sending) {
+ uart->regs->tx_data = data;
+ }
}
}
/* FIXME : handle RX erors */
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !