Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Standard serial I/O (stdio)

Common standard serial I/O management driver that implements a stdio serial interface on AVR and SAM devices.

Functions

static void stdio_serial_init (volatile void *usart, const usart_serial_options_t *opt)
 Initializes the stdio in Serial Mode. More...
 

Variables

void(* ptr_get )(void volatile *, char *)
 Pointer to the external low level read function. More...
 
int(* ptr_put )(void volatile *, char)
 Pointer to the external low level write function. More...
 
volatile void *volatile stdio_base
 Pointer to the base of the USART module instance to use for stdio. More...
 

static void stdio_serial_init ( volatile void *  usart,
const usart_serial_options_t opt 
)
inlinestatic

Initializes the stdio in Serial Mode.

Parameters
usartBase address of the USART instance.
optOptions needed to set up RS232 communication (see usart_options_t).

References ptr_get, ptr_put, stdio_base, usart_serial_getchar(), usart_serial_init(), and usart_serial_putchar().

Referenced by configure_console().

void(* ptr_get)(void volatile *, char *)

Pointer to the external low level read function.

Referenced by stdio_serial_init().

int(* ptr_put)(void volatile *, char)

Pointer to the external low level write function.

Referenced by stdio_serial_init().

volatile void* volatile stdio_base

Pointer to the base of the USART module instance to use for stdio.