serial: add serial_flush()
authorCyprien LAPLACE <cyprien@cypou.net>
Sun, 5 Apr 2015 12:23:50 +0000 (14:23 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
commitd05a1b0196afd62f0c32d5a71571b247cd555ca2
tree172ed0de823b2274b9e5512cbe3beb4228483962
parentfe2c83e07e6724382b0c208ea084a7dfa04faf59
serial: add serial_flush()

Only return once all the in-buffer characters are sent.
Also call uart handler while waiting interrupt off!

Now hard fault are visible :)
drivers/serial.c
include/drivers/serial.h