Microchip® Advanced Software Framework

uart_sam.c File Reference

UART functions.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include "conf_example.h"
#include "uart.h"
#include "main.h"
#include "ui.h"

Functions

static Usart * get_usart (uint8_t port)
 
 ISR (USART_HANDLER_0)
 
 ISR (USART_HANDLER_1)
 
void uart_close (uint8_t port)
 Closes communication line. More...
 
void uart_config (uint8_t port, usb_cdc_line_coding_t *cfg)
 Configures communication line. More...
 
void uart_open (uint8_t port)
 Opens communication line. More...
 
void uart_rx_notify (uint8_t port)
 Called by CDC interface Callback running when CDC device have received data. More...
 
static void usart_handler (uint8_t port)
 

Variables

static sam_usart_opt_t usart_options
 

static Usart* get_usart ( uint8_t  port)
static
ISR ( USART_HANDLER_0  )

References usart_handler().

ISR ( USART_HANDLER_1  )

References usart_handler().

void uart_close ( uint8_t  port)

Closes communication line.

References USART_BASE_0, USART_BASE_1, USART_DISABLE_0, USART_DISABLE_1, and usart_disable_interrupt().

Referenced by main_cdc_disable().

void uart_rx_notify ( uint8_t  port)

Called by CDC interface Callback running when CDC device have received data.

References get_usart(), usart_enable_interrupt(), usart_enable_tx(), and usart_get_interrupt_mask().

sam_usart_opt_t usart_options
static