blob: 017206d3cd21f9ddd097db5c2d938656acdc0adc [file] [log] [blame]
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _PICO_STDIO_DRIVER_H
#define _PICO_STDIO_DRIVER_H
#include "pico/stdio.h"
#include "pico/platform.h"
struct stdio_driver {
void (*out_chars)(const char *buf, int len);
void (*out_flush)();
int (*in_chars)(char *buf, int len);
stdio_driver_t *next;
#if PICO_STDIO_ENABLE_CRLF_SUPPORT
bool last_ended_with_cr;
bool crlf_enabled;
#endif
};
#endif