diff options
| author | Tom Rini <[email protected]> | 2022-10-03 15:39:46 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-10-03 15:39:46 -0400 |
| commit | 2d4591353452638132d711551fec3495b7644731 (patch) | |
| tree | e12058de7f553e84f8d13e545f130c7a48973589 /include/stdio_dev.h | |
| parent | 4debc57a3da6c3f4d3f89a637e99206f4cea0a96 (diff) | |
| parent | 6ee6e15975cad3c99fad3a66223f3fd9287a369b (diff) | |
Merge branch 'next'
Diffstat (limited to 'include/stdio_dev.h')
| -rw-r--r-- | include/stdio_dev.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/stdio_dev.h b/include/stdio_dev.h index 270fa2729fb..3105928970d 100644 --- a/include/stdio_dev.h +++ b/include/stdio_dev.h @@ -37,6 +37,13 @@ struct stdio_dev { void (*putc)(struct stdio_dev *dev, const char c); /* To put a string (accelerator) */ void (*puts)(struct stdio_dev *dev, const char *s); +#ifdef CONFIG_CONSOLE_FLUSH_SUPPORT + /* To flush output queue */ + void (*flush)(struct stdio_dev *dev); +#define STDIO_DEV_ASSIGN_FLUSH(dev, flush_func) ((dev)->flush = (flush_func)) +#else +#define STDIO_DEV_ASSIGN_FLUSH(dev, flush_func) +#endif /* INPUT functions */ |
