Microchip® Advanced Software Framework

cdc/host/example/uart_uc3.c File Reference

UART functions.

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

#include <asf.h>
#include "conf_usb_host.h"
#include "main.h"
#include "ui.h"

Functions

 ISR (usart_interrupt, USART_IRQ_GROUP, 3)
 
void uart_close (void)
 Closes communication line. More...
 
void uart_config (usb_cdc_line_coding_t *cfg)
 Configures communication line. More...
 
void uart_open (void)
 Opens communication line. More...
 
void uart_rx_notify (void)
 Callback called by CDC interface when the CDC device has received data. More...
 

Variables

static usart_options_t usart_options
 

void uart_close ( void  )

Closes communication line.

References USART.

Referenced by main_cdc_disable().

void uart_open ( void  )
void uart_rx_notify ( void  )

Callback called by CDC interface when the CDC device has received data.

References USART.

usart_options_t usart_options
static
Initial value:
= {
.baudrate = 115200,
.charlength = 8,
.paritytype = USART_NO_PARITY,
.stopbits = USART_1_STOPBIT,
.channelmode = USART_NORMAL_CHMODE,
}
#define USART_NO_PARITY
Don&#39;t use a parity bit.
Definition: usart.h:81
#define USART_NORMAL_CHMODE
Normal communication.
Definition: usart.h:96
#define USART_1_STOPBIT
Use 1 stop bit.
Definition: usart.h:88

Referenced by init_printk(), and main().