Atmel Software Framework

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends 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 _read(), _write(), NULL, ptr_get, ptr_put, stdio_base, usart_serial_getchar(), usart_serial_init(), and usart_serial_putchar().

Referenced by main(), sensor_platform_init(), sio2host_init(), and sio2ncp_init().

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

Pointer to the external low level read function.

Referenced by _read(), stdio_serial_init(), and stdio_usb_init().

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

Pointer to the external low level write function.

Referenced by _write(), main(), stdio_serial_init(), and stdio_usb_init().

volatile void* volatile stdio_base

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

Referenced by _read(), _write(), stdio_serial_init(), and stdio_usb_init().