1
6
7
8
9
10
11
12
13
14
15
16
17
18
19
21
22
23
24
/* ... */
#ifndef _PICO_STDIO_DRIVER_H
#define _PICO_STDIO_DRIVER_H
#include "pico/stdio.h"
struct stdio_driver {
void (*out_chars)(const char *buf, int len);
void (*out_flush)(void);
int (*in_chars)(char *buf, int len);
void (*set_chars_available_callback)(void (*fn)(void*), void *param);
stdio_driver_t *next;
#if PICO_STDIO_ENABLE_CRLF_SUPPORT
bool last_ended_with_cr;
bool crlf_enabled;/* ... */
#endif
...};
/* ... */
#endif