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
136#if defined(MODULE_STDIO_DISPATCH) || DOXYGEN
145#define STDIO_PROVIDER(_type, _open, _close, _write) \
146 XFA_CONST(stdio_provider_xfa, 0) stdio_provider_t stdio_ ##_type = { \
152#define STDIO_PROVIDER(_type, _open, _close, _write) \
153 void stdio_init(void) { \
154 void (*f)(void) = _open; \
159 void stdio_close(void) { \
160 void (*f)(void) = _close; \
165 ssize_t stdio_write(const void* buffer, size_t len) { \
166 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
@ 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.