Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c94a7d
)
Also fix get_priority_mask() return value check in serial_flush()
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Fri, 9 Dec 2016 01:33:08 +0000
(
02:33
+0100)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000
(17:03 +0100)
drivers/serial.c
patch
|
blob
|
history
diff --git
a/drivers/serial.c
b/drivers/serial.c
index
7698069
..
155478e
100644
(file)
--- a/
drivers/serial.c
+++ b/
drivers/serial.c
@@
-237,7
+237,7
@@
int serial_flush(uint32_t uart_num)
/* Active wait for message to be sent. If interrupts are
* disabled, call the UART handler while waiting. */
while (uart->sending) {
- if (get_priority_mask()
=
= 0) {
+ if (get_priority_mask()
!
= 0) {
uart_check_tx(uart, uart->regs->func.intr_pending);
}
}
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 !