1 /*
2  * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _PICO_STDIO_DRIVER_H
8 #define _PICO_STDIO_DRIVER_H
9 
10 #include "pico/stdio.h"
11 #include "pico/platform.h"
12 
13 struct stdio_driver {
14     void (*out_chars)(const char *buf, int len);
15     void (*out_flush)(void);
16     int (*in_chars)(char *buf, int len);
17     stdio_driver_t *next;
18 #if PICO_STDIO_ENABLE_CRLF_SUPPORT
19     bool last_ended_with_cr;
20     bool crlf_enabled;
21 #endif
22 };
23 
24 #endif
25