Raspberry Pi Pico・stdio_init_all

,

Credit & License

© 2020-2024 Raspberry Pi Ltd (formerly Raspberry Pi (Trading) Ltd.)
This documentation is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND).

bool stdio_init_all (void)

Initialize all of the present standard stdio types that are linked into the binary.


Call this method once you have set up your clocks to enable the stdio support for UART, USB, semihosting, and RTT
based on the presence of the respective libraries in the binary.


When stdio_usb is configured, this method can be optionally made to block, waiting for a connection via the variables
specified in stdio_usb_init (i.e. PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS)

Returns

true if at least one output was successfully initialized, false otherwise.

See also

stdio_uart, stdio_usb, stdio_semihosting, stdio_rtt