37#ifndef STDIO_RX_BUFSIZE
41#define STDIO_RX_BUFSIZE (64)
80 ssize_t (*write)(
const void *src,
size_t len);
93#if IS_USED(MODULE_STDIO_AVAILABLE) || DOXYGEN
145#if defined(MODULE_STDIO_DISPATCH) || DOXYGEN
154#define STDIO_PROVIDER(_type, _open, _close, _write) \
155 XFA_CONST(stdio_provider_t, stdio_provider_xfa, 0) stdio_ ##_type = { \
161#define STDIO_PROVIDER(_type, _open, _close, _write) \
162 void stdio_init(void) { \
163 void (*f)(void) = _open; \
168 void stdio_close(void) { \
169 void (*f)(void) = _close; \
174 ssize_t stdio_write(const void* buffer, size_t len) { \
175 return _write(buffer, len); \
void stdio_close(void)
Disable stdio and detach stdio providers.
isrpipe_t stdin_isrpipe
isrpipe for writing stdin input to
void stdio_init(void)
initialize the module
ssize_t stdio_read(void *buffer, size_t max_len)
read len bytes from stdio uart into buffer
int stdio_available(void)
Get the number of bytes available for reading from stdio.
ssize_t stdio_write(const void *buffer, size_t len)
write len bytes from buffer into STDOUT
void stdio_clear_stdin(void)
Clear the input buffer.
@ STDIO_ESP32_SERIAL_JTAG
stdio via ESP32 debug Serial/JTAG
@ STDIO_USBUS_CDC_ACM
stdio via USB CDC ACM (usbus)
@ STDIO_UART
stdio via UART
@ STDIO_RTT
stdio via Segger RTT
@ STDIO_TINYUSB_CDC_ACM
tdio via USB CDC ACM (TinyUSB)
@ STDIO_TELNET
stdio via telnet
@ STDIO_ETHOS
stdio via ethos (mutiplex)
@ STDIO_NIMBLE
stdio via BLE (NimBLE)
@ STDIO_SEMIHOSTING
stdio via Semihosting
Common macros and compiler attributes/pragmas configuration.
Context structure for isrpipe.