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:
eec5131
)
Coding style consistency
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 15 Sep 2015 23:42:05 +0000
(
01:42
+0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
drivers/serial.c
patch
|
blob
|
history
diff --git
a/drivers/serial.c
b/drivers/serial.c
index
d636d2a
..
2fdbca6
100644
(file)
--- a/
drivers/serial.c
+++ b/
drivers/serial.c
@@
-173,8
+173,9
@@
int serial_write(uint32_t uart_num, const char *buf, uint32_t length)
/* If UART is sending wait for buffer empty */
/* FIXME : be smart for OS, call scheduler or return */
while (uart->sending != 0) {
- if (get_priority_mask() == 0)
+ if (get_priority_mask() == 0)
{
uart_check_tx(uart, uart->regs->func.intr_pending);
+ }
}
if (length > SERIAL_OUT_BUFF_SIZE) {
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 !