1 /*
2  * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 #ifndef _PICO_STDIO_H
7 #define _PICO_STDIO_H
8 
9 typedef struct stdio_driver stdio_driver_t;
10 
11 #define STDIO_ERROR -1
12 #define STDIO_NO_INPUT -2
13 
stdio_usb_init()14 static inline void stdio_usb_init() {}
15 void stdio_uart_init();
stdio_init_all()16 static inline void stdio_init_all() { stdio_uart_init(); }
stdio_filter_driver(stdio_driver_t * driver)17 static inline void stdio_filter_driver(stdio_driver_t *driver) {}
stdio_set_translate_crlf(stdio_driver_t * driver,bool enabled)18 static inline void stdio_set_translate_crlf(stdio_driver_t *driver, bool enabled) {}
stdio_usb_connected(void)19 static inline bool stdio_usb_connected(void) { return true; }
20 int getchar_timeout_us(uint32_t timeout_us);
21 #define puts_raw puts
22 #define putchar_raw putchar
23 
24 #endif
25