Microchip® Advanced Software Framework

example2/example.c File Reference

SD/MMC card example with FatFs.

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

#include <asf.h>
#include "conf_example.h"
#include <string.h>

Functions

static void cdc_uart_init (void)
 Initialize the USART for output. More...
 
int main (void)
 Application entry point. More...
 

Variables

struct usart_module cdc_uart_module
 Structure for UART module connected to EDBG (used for unit test output) More...
 

static void cdc_uart_init ( void  )
static

Initialize the USART for output.

Initializes the SERCOM USART used for sending the output to the computer via the EDBG CDC gateway.

References usart_config::baudrate, cdc_uart_module, usart_config::mux_setting, usart_config::pinmux_pad0, usart_config::pinmux_pad1, usart_config::pinmux_pad2, usart_config::pinmux_pad3, usart_enable(), and usart_get_config_defaults().

Referenced by main().

struct usart_module cdc_uart_module

Structure for UART module connected to EDBG (used for unit test output)