USART Example application for AVR UC3 USART driver.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <stdint.h>
#include "usart.h"
#include "board.h"
#include "sysclk.h"
#include "gpio.h"
#include "conf_board.h"
#include "conf_clock.h"
#include "conf_example.h"
Functions | |
int | main (void) |
Application main loop. More... | |
Variables | |
static const gpio_map_t | usart_gpio_map |
USART configuration options. More... | |
static const usart_options_t | usart_options |
USART options for enabling local loopback mode. More... | |
int main | ( | void | ) |
Application main loop.
The main function does the following:
References cpu_relax, EXAMPLE_USART, gpio_enable_module(), i, sysclk_enable_peripheral_clock(), sysclk_get_pba_hz(), sysclk_init(), usart_getchar(), usart_init_rs232(), and usart_putchar().
|
static |
USART configuration options.
This struct contains the configuration options for the USART module in use by the example application.GPIO mapping for USART1 module
Referenced by main().
|
static |
USART options for enabling local loopback mode.