@web-font-path: "roboto-debian.css";
v2.2.0 (RP2040)
Loading...
Searching...
No Matches
stdio_uart.h
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _PICO_STDIO_UART_H
#define _PICO_STDIO_UART_H
#include "pico/stdio.h"
#include "hardware/uart.h"
// PICO_CONFIG: PICO_STDIO_UART_DEFAULT_CRLF, Default state of CR/LF translation for UART output, type=bool, default=PICO_STDIO_DEFAULT_CRLF, group=pico_stdio_uart
#ifndef PICO_STDIO_UART_DEFAULT_CRLF
#define PICO_STDIO_UART_DEFAULT_CRLF PICO_STDIO_DEFAULT_CRLF
#endif
// PICO_CONFIG: PICO_STDIO_UART_SUPPORT_CHARS_AVAILABLE_CALLBACK, Enable UART STDIO support for stdio_set_chars_available_callback. Can be disabled to make use of the uart elsewhere, type=bool, default=1, group=pico_stdio_uart
#ifndef PICO_STDIO_UART_SUPPORT_CHARS_AVAILABLE_CALLBACK
#define PICO_STDIO_UART_SUPPORT_CHARS_AVAILABLE_CALLBACK 1
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern stdio_driver_t stdio_uart;
void stdio_uart_init(void);
void stdout_uart_init(void);
void stdin_uart_init(void);
void stdio_uart_init_full(uart_inst_t *uart, uint baud_rate, int tx_pin, int rx_pin);
void stdio_uart_deinit(void);
void stdout_uart_deinit(void);
void stdin_uart_deinit(void);
void stdio_uart_deinit_full(uart_inst_t *uart, int tx_pin, int rx_pin);
#ifdef __cplusplus
}
#endif
#endif
stdio_uart_init_full
void stdio_uart_init_full(uart_inst_t *uart, uint baud_rate, int tx_pin, int rx_pin)
Perform custom initialization initialize stdin/stdout over UART and add it to the current set of stdi...
stdout_uart_init
void stdout_uart_init(void)
Explicitly initialize stdout only (no stdin) over UART and add it to the current set of stdout driver...
Definition stdio_uart.c:69
stdio_uart_deinit
void stdio_uart_deinit(void)
Explicitly deinitialize stdin/stdout over UART and remove it from the current set of stdin/stdout dri...
Definition stdio_uart.c:101
stdout_uart_deinit
void stdout_uart_deinit(void)
Explicitly deinitialize stdout only (no stdin) over UART and remove it from the current set of stdout...
Definition stdio_uart.c:115
stdin_uart_init
void stdin_uart_init(void)
Explicitly initialize stdin only (no stdout) over UART and add it to the current set of stdin drivers...
Definition stdio_uart.c:81
stdin_uart_deinit
void stdin_uart_deinit(void)
Explicitly deinitialize stdin only (no stdout) over UART and remove it from the current set of stdin ...
Definition stdio_uart.c:121
stdio_uart_deinit_full
void stdio_uart_deinit_full(uart_inst_t *uart, int tx_pin, int rx_pin)
Perform custom deinitialization deinitialize stdin/stdout over UART and remove it from the current se...
stdio_uart_init
void stdio_uart_init(void)
Explicitly initialize stdin/stdout over UART and add it to the current set of stdin/stdout drivers.
Definition stdio_uart.c:37
uart.h
stdio.h