stdio_uart.h
1/*
2 * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef _PICO_STDIO_UART_H
8#define _PICO_STDIO_UART_H
9
10#include "pico/stdio.h"
11#include "hardware/uart.h"
12
21// 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
22#ifndef PICO_STDIO_UART_DEFAULT_CRLF
23#define PICO_STDIO_UART_DEFAULT_CRLF PICO_STDIO_DEFAULT_CRLF
24#endif
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30extern stdio_driver_t stdio_uart;
31
40void stdio_uart_init(void);
41
47void stdout_uart_init(void);
48
54void stdin_uart_init(void);
55
64void stdio_uart_init_full(uart_inst_t *uart, uint baud_rate, int tx_pin, int rx_pin);
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif
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...
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:47
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:59
void stdio_uart_init(void)
Explicitly initialize stdin/stdout over UART and add it to the current set of stdin/stdout drivers.
Definition: stdio.c:21
Definition: driver.h:13